diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2005-10-26 17:06:40 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2005-10-26 17:06:40 +0000 |
commit | cb19863fd26ce462a254ece01ae804e837f8ec3a (patch) | |
tree | 87723d2557a490cca6b098d83fdf3c521417cc2a | |
parent | 3613eb37761fbda4cf7f0900287b8d582852a141 (diff) |
3rd arg to F_GETFL fcntl doesn't need to be a pointer, 0 is fine.
-rw-r--r-- | usr.bin/skeyaudit/skeyaudit.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/skeyaudit/skeyaudit.c b/usr.bin/skeyaudit/skeyaudit.c index b64cfeef0ca..bcb974cab72 100644 --- a/usr.bin/skeyaudit/skeyaudit.c +++ b/usr.bin/skeyaudit/skeyaudit.c @@ -1,4 +1,4 @@ -/* $OpenBSD: skeyaudit.c,v 1.21 2005/07/06 21:50:24 jmc Exp $ */ +/* $OpenBSD: skeyaudit.c,v 1.22 2005/10/26 17:06:39 millert Exp $ */ /* * Copyright (c) 1997, 2000, 2003 Todd C. Miller <Todd.Miller@courtesan.com> @@ -79,7 +79,7 @@ main(int argc, char **argv) * If we are in interactive mode, STDOUT_FILENO *must* be open. */ for (ch = STDIN_FILENO; ch <= STDERR_FILENO; ch++) { - if (fcntl(ch, F_GETFL, &left) == -1 && errno == EBADF) { + if (fcntl(ch, F_GETFL, 0) == -1 && errno == EBADF) { if (ch == STDOUT_FILENO && iflag) exit(1); /* need stdout for -i */ if (open(_PATH_DEVNULL, O_RDWR, 0644) == -1) |