[xiph-cvs] cvs commit: net sock.c

Michael Smith msmith at xiph.org
Tue Apr 8 05:09:58 PDT 2003



msmith      03/04/08 08:09:58

  Modified:    .        sock.c
  Log:
  Don't pass 0x1 as a pointer to a syscall. oops.

Revision  Changes    Path
1.21      +1 -1      net/sock.c

Index: sock.c
===================================================================
RCS file: /usr/local/cvsroot/net/sock.c,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -r1.20 -r1.21
--- sock.c	15 Mar 2003 02:10:18 -0000	1.20
+++ sock.c	8 Apr 2003 12:09:57 -0000	1.21
@@ -208,7 +208,7 @@
 {
     int nodelay = 1;
 
-    return setsockopt(sock, IPPROTO_TCP, TCP_NODELAY, (void *)nodelay,
+    return setsockopt(sock, IPPROTO_TCP, TCP_NODELAY, (void *)&nodelay,
             sizeof(int));
 }
 

<p><p>--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'cvs-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the commits mailing list