From: wessels <> Date: Sat, 25 Oct 1997 22:47:06 +0000 (+0000) Subject: Need 'dummy' third arg to fcntl(). (Max Okumoto) X-Git-Tag: SQUID_3_0_PRE1~4690 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c7989865d980dd37d367f6824283fab4167704fe;p=thirdparty%2Fsquid.git Need 'dummy' third arg to fcntl(). (Max Okumoto) --- diff --git a/src/comm.cc b/src/comm.cc index 725ad42b51..b30a107503 100644 --- a/src/comm.cc +++ b/src/comm.cc @@ -1,6 +1,6 @@ /* - * $Id: comm.cc,v 1.192 1997/10/23 20:41:13 wessels Exp $ + * $Id: comm.cc,v 1.193 1997/10/25 16:47:06 wessels Exp $ * * DEBUG: section 5 Socket Functions * AUTHOR: Harvest Derived @@ -1160,7 +1160,8 @@ commSetCloseOnExec(int fd) { #ifdef FD_CLOEXEC int flags; - if ((flags = fcntl(fd, F_GETFL)) < 0) { + int dummy; + if ((flags = fcntl(fd, F_GETFL, dummy)) < 0) { debug(50, 0) ("FD %d: fcntl F_GETFL: %s\n", fd, xstrerror()); return; }