add domain specification
authorSam Leffler <sam@ucbvax.Berkeley.EDU>
Tue, 16 Nov 1982 10:34:40 +0000 (02:34 -0800)
committerSam Leffler <sam@ucbvax.Berkeley.EDU>
Tue, 16 Nov 1982 10:34:40 +0000 (02:34 -0800)
SCCS-vsn: libexec/rlogind/rlogind.c 4.5
SCCS-vsn: libexec/rshd/rshd.c 4.5
SCCS-vsn: usr.sbin/rwhod/rwhod.c 4.6
SCCS-vsn: usr.bin/tftp/main.c 4.4
SCCS-vsn: libexec/tftpd/tftpd.c 4.6

usr/src/libexec/rlogind/rlogind.c
usr/src/libexec/rshd/rshd.c
usr/src/libexec/tftpd/tftpd.c
usr/src/usr.bin/tftp/main.c
usr/src/usr.sbin/rwhod/rwhod.c

index f695646..d5a6d1b 100644 (file)
@@ -1,5 +1,5 @@
 #ifndef lint
 #ifndef lint
-static char sccsid[] = "@(#)rlogind.c  4.4 82/11/15";
+static char sccsid[] = "@(#)rlogind.c  4.5 82/11/15";
 #endif
 
 #include <stdio.h>
 #endif
 
 #include <stdio.h>
@@ -70,7 +70,7 @@ main(argc, argv)
                sin.sin_port = htons(port);
                argv++, argc--;
        }
                sin.sin_port = htons(port);
                argv++, argc--;
        }
-       f = socket(0, SOCK_STREAM, 0, 0);
+       f = socket(AF_INET, SOCK_STREAM, 0, 0);
        if (f < 0) {
                perror("rlogind: socket");
                exit(1);
        if (f < 0) {
                perror("rlogind: socket");
                exit(1);
index b2d7849..1b7d24f 100644 (file)
@@ -1,5 +1,5 @@
 #ifndef lint
 #ifndef lint
-static char sccsid[] = "@(#)rshd.c     4.4 82/11/15";
+static char sccsid[] = "@(#)rshd.c     4.5 82/11/15";
 #endif
 
 #include <sys/ioctl.h>
 #endif
 
 #include <sys/ioctl.h>
@@ -70,7 +70,7 @@ main(argc, argv)
                sin.sin_port = htons(port);
                argc--, argv++;
        }
                sin.sin_port = htons(port);
                argc--, argv++;
        }
-       f = socket(0, SOCK_STREAM, 0, 0);
+       f = socket(AF_INET, SOCK_STREAM, 0, 0);
        if (f < 0) {
                perror("rshd: socket");
                exit(1);
        if (f < 0) {
                perror("rshd: socket");
                exit(1);
index ed7cd4d..d6ea61f 100644 (file)
@@ -1,4 +1,4 @@
-/*     tftpd.c 4.5     82/11/15        */
+/*     tftpd.c 4.6     82/11/15        */
 
 /*
  * Trivial file transfer protocol server.
 
 /*
  * Trivial file transfer protocol server.
@@ -57,7 +57,7 @@ main(argc, argv)
        for (;;) {
                int fromlen;
 
        for (;;) {
                int fromlen;
 
-               f = socket(0, SOCK_DGRAM, 0, 0);
+               f = socket(AF_INET, SOCK_DGRAM, 0, 0);
                if (f < 0) {
                        perror("tftpd: socket");
                        close(f);
                if (f < 0) {
                        perror("tftpd: socket");
                        close(f);
index eb3e1c4..0fedc0d 100644 (file)
@@ -1,4 +1,4 @@
-/*     main.c  4.3     82/11/14        */
+/*     main.c  4.4     82/11/15        */
 
 /*
  * TFTP User Program -- Command Interface.
 
 /*
  * TFTP User Program -- Command Interface.
@@ -76,7 +76,7 @@ main(argc, argv)
                fprintf(stderr, "tftp: udp/tftp: unknown service\n");
                exit(1);
        }
                fprintf(stderr, "tftp: udp/tftp: unknown service\n");
                exit(1);
        }
-       f = socket(0, SOCK_DGRAM, 0, 0);
+       f = socket(AF_INET, SOCK_DGRAM, 0, 0);
        if (f < 0) {
                perror("socket");
                exit(3);
        if (f < 0) {
                perror("socket");
                exit(3);
index 56d12ca..cbdc363 100644 (file)
@@ -1,5 +1,5 @@
 #ifndef lint
 #ifndef lint
-static char sccsid[] = "@(#)rwhod.c    4.5 82/11/14";
+static char sccsid[] = "@(#)rwhod.c    4.6 82/11/15";
 #endif
 
 #include <sys/types.h>
 #endif
 
 #include <sys/types.h>
@@ -99,7 +99,7 @@ main()
        }
        sin.sin_port = sp->s_port;
        getkmem();
        }
        sin.sin_port = sp->s_port;
        getkmem();
-       if ((s = socket(0, SOCK_DGRAM, 0, 0)) < 0) {
+       if ((s = socket(AF_INET, SOCK_DGRAM, 0, 0)) < 0) {
                perror("rwhod: socket");
                exit(1);
        }
                perror("rwhod: socket");
                exit(1);
        }