]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Need 'dummy' third arg to fcntl(). (Max Okumoto)
authorwessels <>
Sat, 25 Oct 1997 22:47:06 +0000 (22:47 +0000)
committerwessels <>
Sat, 25 Oct 1997 22:47:06 +0000 (22:47 +0000)
src/comm.cc

index 725ad42b51d29b4d4edee858f379aae54fd11f67..b30a1075037a1c84039628ae9bf32c70c5f96a8f 100644 (file)
@@ -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;
     }