From: Jeffrey Altman Date: Sat, 4 Mar 2006 21:39:25 +0000 (+0000) Subject: windows-deadcode-20060304 X-Git-Tag: mp-rxtcp-20060314~23 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=943dfd7a1e17a3232a44fd7d7bc6843ef50cdff8;p=packages%2Fo%2Fopenafs.git windows-deadcode-20060304 --- diff --git a/src/WINNT/afsd/fs_utils.c b/src/WINNT/afsd/fs_utils.c index fcc5f0591..f011c3905 100644 --- a/src/WINNT/afsd/fs_utils.c +++ b/src/WINNT/afsd/fs_utils.c @@ -121,37 +121,6 @@ long fs_GetFullPath(char *pathp, char *outPathp, long outSize) return 0; } -#ifdef COMMENT -struct hostent *hostutil_GetHostByName(char *namep) -{ - struct hostent *thp; - - thp = gethostbyname(namep); - return thp; -} - -/* get hostname or addr, given addr in network byte order */ -char *hostutil_GetNameByINet(afs_uint32 addr) -{ - static char hostNameBuffer[256]; - struct hostent *thp; - - thp = gethostbyaddr((char *) &addr, sizeof(afs_uint32), AF_INET); - if (thp) - strcpy(hostNameBuffer, thp->h_name); - else { - sprintf(hostNameBuffer, "%d.%d.%d.%d", - addr & 0xff, - (addr >> 8) & 0xff, - (addr >> 16) & 0xff, - (addr >> 24) & 0xff); - } - - /* return static buffer */ - return hostNameBuffer; -} -#endif - /* is this a digit or a digit-like thing? */ static int ismeta(ac, abase) register int abase;