diff options
| author | 2005-02-02 06:17:17 +0000 | |
|---|---|---|
| committer | 2005-02-02 06:17:17 +0000 | |
| commit | c4dcc50f90c5beca2a9c6ebc7b4aa160cdf6c462 (patch) | |
| tree | 4683766228ef525fd0111ade63097fbc05521ae3 /usr.bin/grep/file.c | |
| parent | - syncs are done by a kernel thread, not update(8) (diff) | |
| download | wireguard-openbsd-c4dcc50f90c5beca2a9c6ebc7b4aa160cdf6c462.tar.xz wireguard-openbsd-c4dcc50f90c5beca2a9c6ebc7b4aa160cdf6c462.zip | |
replace 0 with STDIN_FILENO. from han boetes and jared yanovich
Diffstat (limited to 'usr.bin/grep/file.c')
| -rw-r--r-- | usr.bin/grep/file.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/grep/file.c b/usr.bin/grep/file.c index aa9f5066e6a..99892e6c5a8 100644 --- a/usr.bin/grep/file.c +++ b/usr.bin/grep/file.c @@ -1,4 +1,4 @@ -/* $OpenBSD: file.c,v 1.5 2003/12/29 21:20:55 canacar Exp $ */ +/* $OpenBSD: file.c,v 1.6 2005/02/02 06:17:17 tedu Exp $ */ /*- * Copyright (c) 1999 James Howard and Dag-Erling Coïdan Smørgrav @@ -93,7 +93,7 @@ grep_fdopen(int fd, char *mode) { file_t *f; - if (fd == 0) + if (fd == STDIN_FILENO) snprintf(fname, sizeof fname, "(standard input)"); else snprintf(fname, sizeof fname, "(fd %d)", fd); |
