port numbers now byte swapped
authorSam Leffler <sam@ucbvax.Berkeley.EDU>
Fri, 24 Dec 1982 05:13:13 +0000 (21:13 -0800)
committerSam Leffler <sam@ucbvax.Berkeley.EDU>
Fri, 24 Dec 1982 05:13:13 +0000 (21:13 -0800)
SCCS-vsn: libexec/comsat/comsat.c 4.5

usr/src/libexec/comsat/comsat.c

index d6b7e18..2ea59a2 100644 (file)
@@ -1,5 +1,5 @@
 #ifndef lint
 #ifndef lint
-static char *sccsid = "@(#)comsat.c    4.4 82/11/17";
+static char *sccsid = "@(#)comsat.c    4.5 82/12/23";
 #endif
 
 #include <sys/types.h>
 #endif
 
 #include <sys/types.h>
@@ -23,7 +23,7 @@ static        char *sccsid = "@(#)comsat.c    4.4 82/11/17";
 
 #define MAXUTMP 100            /* down from init */
 
 
 #define MAXUTMP 100            /* down from init */
 
-struct sockaddr_in sin = { AF_INET, IPPORT_BIFFUDP };
+struct sockaddr_in sin = { AF_INET };
 extern errno;
 
 struct utmp utmp[100];
 extern errno;
 
 struct utmp utmp[100];
@@ -67,9 +67,6 @@ char **argv;
                perror("socket");
                exit(1);
        }
                perror("socket");
                exit(1);
        }
-#if vax || pdp11
-       sp->s_port = htons((u_short)sp->s_port);
-#endif
        sin.sin_port = sp->s_port;
        if (bind(s, &sin, sizeof (sin), 0) < 0) {
                perror("bind");
        sin.sin_port = sp->s_port;
        if (bind(s, &sin, sizeof (sin), 0) < 0) {
                perror("bind");