bind has only 3 args now
authorJim Bloom <bloom@ucbvax.Berkeley.EDU>
Sat, 26 Oct 1985 02:28:13 +0000 (18:28 -0800)
committerJim Bloom <bloom@ucbvax.Berkeley.EDU>
Sat, 26 Oct 1985 02:28:13 +0000 (18:28 -0800)
SCCS-vsn: lib/libc/net/rcmd.c 5.8

usr/src/lib/libc/net/rcmd.c

index 62ba9fd..2491a51 100644 (file)
@@ -5,7 +5,7 @@
  */
 
 #ifndef lint
  */
 
 #ifndef lint
-static char sccsid[] = "@(#)rcmd.c     5.7 (Berkeley) %G%";
+static char sccsid[] = "@(#)rcmd.c     5.8 (Berkeley) %G%";
 #endif not lint
 
 #include <stdio.h>
 #endif not lint
 
 #include <stdio.h>
@@ -138,7 +138,7 @@ rresvport(alport)
                return (-1);
        for (;;) {
                sin.sin_port = htons((u_short)*alport);
                return (-1);
        for (;;) {
                sin.sin_port = htons((u_short)*alport);
-               if (bind(s, (caddr_t)&sin, sizeof (sin), 0) >= 0)
+               if (bind(s, (caddr_t)&sin, sizeof (sin)) >= 0)
                        return (s);
                if (errno != EADDRINUSE) {
                        (void) close(s);
                        return (s);
                if (errno != EADDRINUSE) {
                        (void) close(s);