summaryrefslogtreecommitdiff
path: root/src/lib/libc/net/inet_makeaddr.c
diff options
context:
space:
mode:
authormillert <>1997-04-05 21:13:17 +0000
committermillert <>1997-04-05 21:13:17 +0000
commit9156235dba65010d9f983e3b8fc0e0b2739c78d4 (patch)
tree178131fb064d2fb2a659152bdfbfb0c0bb5788cd /src/lib/libc/net/inet_makeaddr.c
parent06967c8a88bc843a5afe2987c242b4f744a4dabf (diff)
downloadopenbsd-9156235dba65010d9f983e3b8fc0e0b2739c78d4.tar.gz
openbsd-9156235dba65010d9f983e3b8fc0e0b2739c78d4.tar.bz2
openbsd-9156235dba65010d9f983e3b8fc0e0b2739c78d4.zip
Use in_addr_t not u_long and use in_port_t in some cases instead
of u_short or u_int16_t.
Diffstat (limited to 'src/lib/libc/net/inet_makeaddr.c')
-rw-r--r--src/lib/libc/net/inet_makeaddr.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libc/net/inet_makeaddr.c b/src/lib/libc/net/inet_makeaddr.c
index 1b2d4edb5a..196a589e4c 100644
--- a/src/lib/libc/net/inet_makeaddr.c
+++ b/src/lib/libc/net/inet_makeaddr.c
@@ -32,7 +32,7 @@
32 */ 32 */
33 33
34#if defined(LIBC_SCCS) && !defined(lint) 34#if defined(LIBC_SCCS) && !defined(lint)
35static char rcsid[] = "$OpenBSD: inet_makeaddr.c,v 1.2 1996/08/19 08:29:11 tholo Exp $"; 35static char rcsid[] = "$OpenBSD: inet_makeaddr.c,v 1.3 1997/04/05 21:13:12 millert Exp $";
36#endif /* LIBC_SCCS and not lint */ 36#endif /* LIBC_SCCS and not lint */
37 37
38#include <sys/param.h> 38#include <sys/param.h>
@@ -45,9 +45,9 @@ static char rcsid[] = "$OpenBSD: inet_makeaddr.c,v 1.2 1996/08/19 08:29:11 tholo
45 */ 45 */
46struct in_addr 46struct in_addr
47inet_makeaddr(net, host) 47inet_makeaddr(net, host)
48 u_long net, host; 48 in_addr_t net, host;
49{ 49{
50 u_long addr; 50 in_addr_t addr;
51 51
52 if (net < 128) 52 if (net < 128)
53 addr = (net << IN_CLASSA_NSHIFT) | (host & IN_CLASSA_HOST); 53 addr = (net << IN_CLASSA_NSHIFT) | (host & IN_CLASSA_HOST);