From 36f527ec9210b193cb1759b405655ded41c62fa4 Mon Sep 17 00:00:00 2001 From: millert Date: Wed, 26 Oct 2005 17:06:39 +0000 Subject: [PATCH] 3rd arg to F_GETFL fcntl doesn't need to be a pointer, 0 is fine. --- usr.bin/skeyaudit/skeyaudit.c | 4 ++-- 1 file 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 @@ -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)