From: millert Date: Sat, 5 Apr 1997 20:58:28 +0000 (+0000) Subject: Use in_addr_t not u_long. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=5290f10fc1a620d7e87b26501b3148ec28527c82;p=openbsd Use in_addr_t not u_long. --- diff --git a/include/arpa/inet.h b/include/arpa/inet.h index 34bb1f3942f..d649a96dbb9 100644 --- a/include/arpa/inet.h +++ b/include/arpa/inet.h @@ -1,4 +1,4 @@ -/* $OpenBSD: inet.h,v 1.3 1997/03/13 19:11:53 downsj Exp $ */ +/* $OpenBSD: inet.h,v 1.4 1997/04/05 20:58:30 millert Exp $ */ /* * ++Copyright++ 1983, 1993 @@ -74,13 +74,13 @@ #include __BEGIN_DECLS -unsigned long inet_addr __P((const char *)); +in_addr_t inet_addr __P((const char *)); int inet_aton __P((const char *, struct in_addr *)); -unsigned long inet_lnaof __P((struct in_addr)); -struct in_addr inet_makeaddr __P((u_long , u_long)); -char * inet_neta __P((u_long, char *, size_t)); -unsigned long inet_netof __P((struct in_addr)); -unsigned long inet_network __P((const char *)); +in_addr_t inet_lnaof __P((struct in_addr)); +struct in_addr inet_makeaddr __P((in_addr_t , in_addr_t)); +char * inet_neta __P((in_addr_t, char *, size_t)); +in_addr_t inet_netof __P((struct in_addr)); +in_addr_t inet_network __P((const char *)); char *inet_net_ntop __P((int, const void *, int, char *, size_t)); int inet_net_pton __P((int, const char *, void *, size_t)); char *inet_ntoa __P((struct in_addr)); diff --git a/include/netdb.h b/include/netdb.h index b1d03fff547..671d02aebb3 100644 --- a/include/netdb.h +++ b/include/netdb.h @@ -1,4 +1,4 @@ -/* $OpenBSD: netdb.h,v 1.3 1997/03/13 19:11:49 downsj Exp $ */ +/* $OpenBSD: netdb.h,v 1.4 1997/04/05 20:58:28 millert Exp $ */ /* * ++Copyright++ 1980, 1983, 1988, 1993 @@ -93,13 +93,13 @@ struct hostent { /* * Assumption here is that a network number - * fits in an unsigned long -- probably a poor one. + * fits in an in_addr_t -- probably a poor one. */ struct netent { char *n_name; /* official name of net */ char **n_aliases; /* alias list */ int n_addrtype; /* net address type */ - unsigned long n_net; /* network # */ + in_addr_t n_net; /* network # */ }; struct servent { @@ -137,7 +137,7 @@ struct hostent *gethostbyaddr __P((const char *, int, int)); struct hostent *gethostbyname __P((const char *)); struct hostent *gethostbyname2 __P((const char *, int)); struct hostent *gethostent __P((void)); -struct netent *getnetbyaddr __P((unsigned long, int)); +struct netent *getnetbyaddr __P((in_addr_t, int)); struct netent *getnetbyname __P((const char *)); struct netent *getnetent __P((void)); struct protoent *getprotobyname __P((const char *));