p_proto and s_port are int, not long.
authorJay Lepreau <lepreau@ucbvax.Berkeley.EDU>
Sat, 10 May 1986 12:57:41 +0000 (04:57 -0800)
committerJay Lepreau <lepreau@ucbvax.Berkeley.EDU>
Sat, 10 May 1986 12:57:41 +0000 (04:57 -0800)
SCCS-vsn: lib/libc/net/getprotoent.3 6.2
SCCS-vsn: lib/libc/net/getservent.3 6.2

usr/src/lib/libc/net/getprotoent.3
usr/src/lib/libc/net/getservent.3

index 5ac6350..0814a69 100644 (file)
@@ -2,7 +2,7 @@
 .\" All rights reserved.  The Berkeley software License Agreement
 .\" specifies the terms and conditions for redistribution.
 .\"
 .\" All rights reserved.  The Berkeley software License Agreement
 .\" specifies the terms and conditions for redistribution.
 .\"
-.\"    @(#)getprotoent.3       6.1 (Berkeley) %G%
+.\"    @(#)getprotoent.3       6.2 (Berkeley) %G%
 .\"
 .TH GETPROTOENT 3N ""
 .UC 5
 .\"
 .TH GETPROTOENT 3N ""
 .UC 5
@@ -47,7 +47,7 @@ fields of a line in the network protocol data base,
 struct protoent {
        char    *p_name;        /* official name of protocol */
        char    **p_aliases;    /* alias list */
 struct protoent {
        char    *p_name;        /* official name of protocol */
        char    **p_aliases;    /* alias list */
-       long    p_proto;        /* protocol number */
+       int     p_proto;        /* protocol number */
 };
 .ft R
 .ad
 };
 .ft R
 .ad
index c3afb6f..2c0dea3 100644 (file)
@@ -2,7 +2,7 @@
 .\" All rights reserved.  The Berkeley software License Agreement
 .\" specifies the terms and conditions for redistribution.
 .\"
 .\" All rights reserved.  The Berkeley software License Agreement
 .\" specifies the terms and conditions for redistribution.
 .\"
-.\"    @(#)getservent.3        6.1 (Berkeley) %G%
+.\"    @(#)getservent.3        6.2 (Berkeley) %G%
 .\"
 .TH GETSERVENT 3N ""
 .UC 5
 .\"
 .TH GETSERVENT 3N ""
 .UC 5
@@ -47,7 +47,7 @@ fields of a line in the network services data base,
 struct servent {
        char    *s_name;        /* official name of service */
        char    **s_aliases;    /* alias list */
 struct servent {
        char    *s_name;        /* official name of service */
        char    **s_aliases;    /* alias list */
-       long    s_port;         /* port service resides at */
+       int     s_port;         /* port service resides at */
        char    *s_proto;       /* protocol to use */
 };
 .ft R
        char    *s_proto;       /* protocol to use */
 };
 .ft R