in_addr_t.

This commit is contained in:
Ralf Corsepius
2005-05-09 12:45:45 +00:00
parent 4fea445575
commit 00a578ad6b
5 changed files with 7 additions and 7 deletions

View File

@@ -67,7 +67,7 @@ static char rcsid[] = "$Id$";
* ASCII internet address interpretation routine. * ASCII internet address interpretation routine.
* The value returned is in network order. * The value returned is in network order.
*/ */
u_long in_addr_t
inet_addr(cp) inet_addr(cp)
const char *cp; const char *cp;
{ {
@@ -90,7 +90,7 @@ inet_aton(cp, addr)
const char *cp; const char *cp;
struct in_addr *addr; struct in_addr *addr;
{ {
register u_long val; in_addr_t val;
register int base, n; register int base, n;
register char c; register char c;
u_int parts[4]; u_int parts[4];

View File

@@ -46,7 +46,7 @@ static char sccsid[] = "@(#)inet_lnaof.c 8.1 (Berkeley) 6/4/93";
* internet address; handles class a/b/c network * internet address; handles class a/b/c network
* number formats. * number formats.
*/ */
u_long in_addr_t
inet_lnaof(in) inet_lnaof(in)
struct in_addr in; struct in_addr in;
{ {

View File

@@ -47,7 +47,7 @@ static char sccsid[] = "@(#)inet_makeaddr.c 8.1 (Berkeley) 6/4/93";
*/ */
struct in_addr struct in_addr
inet_makeaddr(net, host) inet_makeaddr(net, host)
u_long net, host; in_addr_t net, host;
{ {
u_long addr; u_long addr;

View File

@@ -45,7 +45,7 @@ static char sccsid[] = "@(#)inet_netof.c 8.1 (Berkeley) 6/4/93";
* Return the network number from an internet * Return the network number from an internet
* address; handles class a/b/c network #'s. * address; handles class a/b/c network #'s.
*/ */
u_long in_addr_t
inet_netof(in) inet_netof(in)
struct in_addr in; struct in_addr in;
{ {

View File

@@ -47,9 +47,9 @@ static char sccsid[] = "@(#)inet_network.c 8.1 (Berkeley) 6/4/93";
* The library routines call this routine to interpret * The library routines call this routine to interpret
* network numbers. * network numbers.
*/ */
u_long in_addr_t
inet_network(cp) inet_network(cp)
register const char *cp; const char *cp;
{ {
register u_long val, base, n, i; register u_long val, base, n, i;
register char c; register char c;