diff options
| author | Rao Shoaib <Rao.Shoaib@Sun.COM> | 2009-11-11 08:45:41 -0800 |
|---|---|---|
| committer | Rao Shoaib <Rao.Shoaib@Sun.COM> | 2009-11-11 08:45:41 -0800 |
| commit | 9525b14bcdeb5b5f6f95ab27c2f48f18bd2ec829 (patch) | |
| tree | df51891a276edf456c1481f49653a76cdfedee53 /usr/src/lib/libresolv2/common/inet/inet_netof.c | |
| parent | 0324f02a004039d6377111191fdd7134452d7817 (diff) | |
| download | illumos-joyent-9525b14bcdeb5b5f6f95ab27c2f48f18bd2ec829.tar.gz | |
6289479 libresolv2 clean up and alignment with libbind.6.0
Diffstat (limited to 'usr/src/lib/libresolv2/common/inet/inet_netof.c')
| -rw-r--r-- | usr/src/lib/libresolv2/common/inet/inet_netof.c | 19 |
1 files changed, 3 insertions, 16 deletions
diff --git a/usr/src/lib/libresolv2/common/inet/inet_netof.c b/usr/src/lib/libresolv2/common/inet/inet_netof.c index a5395af2d4..c228e3d818 100644 --- a/usr/src/lib/libresolv2/common/inet/inet_netof.c +++ b/usr/src/lib/libresolv2/common/inet/inet_netof.c @@ -1,9 +1,4 @@ /* - * Copyright (c) 1997-2000 by Sun Microsystems, Inc. - * All rights reserved. - */ - -/* * Copyright (c) 1983, 1993 * The Regents of the University of California. All rights reserved. * @@ -36,8 +31,6 @@ * SUCH DAMAGE. */ -#pragma ident "%Z%%M% %I% %E% SMI" - #if defined(LIBC_SCCS) && !defined(lint) static const char sccsid[] = "@(#)inet_netof.c 8.1 (Berkeley) 6/4/93"; #endif /* LIBC_SCCS and not lint */ @@ -50,23 +43,15 @@ static const char sccsid[] = "@(#)inet_netof.c 8.1 (Berkeley) 6/4/93"; #include "port_after.h" -/* +/*% * Return the network number from an internet * address; handles class a/b/c network #'s. */ -#ifdef ORIGINAL_ISC_CODE u_long -#else -in_addr_t -#endif inet_netof(in) struct in_addr in; { -#ifdef ORIGINAL_ISC_CODE register u_long i = ntohl(in.s_addr); -#else - register in_addr_t i = ntohl(in.s_addr); -#endif if (IN_CLASSA(i)) return (((i)&IN_CLASSA_NET) >> IN_CLASSA_NSHIFT); @@ -75,3 +60,5 @@ inet_netof(in) else return (((i)&IN_CLASSC_NET) >> IN_CLASSC_NSHIFT); } + +/*! \file */ |
