]> arthur.barton.de Git - ngircd-alex.git/blobdiff - src/tool/tool.c
Moved .cvsignore files to .gitignore
[ngircd-alex.git] / src / tool / tool.c
index dc2384519cd54e6337a0fd2cdc35722a83ecb257..1e723773d98f3fb6a6f061df1c6dda7a7045301e 100644 (file)
@@ -14,7 +14,7 @@
 
 #include "portab.h"
 
-static char UNUSED id[] = "$Id: tool.c,v 1.7 2007/11/23 16:26:05 fw Exp $";
+static char UNUSED id[] = "$Id: tool.c,v 1.9 2008/02/26 22:04:18 fw Exp $";
 
 #include "imp.h"
 #include <assert.h>
@@ -23,9 +23,6 @@ static char UNUSED id[] = "$Id: tool.c,v 1.7 2007/11/23 16:26:05 fw Exp $";
 #include <string.h>
 
 #include <netinet/in.h>
-#ifdef HAVE_ARPA_INET_H
-# include <arpa/inet.h>
-#endif
 
 #include "exp.h"
 #include "tool.h"
@@ -109,23 +106,4 @@ ngt_TrimLastChr( char *String, const char Chr)
        if( String[len] == Chr ) String[len] = '\0';
 } /* ngt_TrimLastChr */
 
-
-GLOBAL bool
-ngt_IPStrToBin(const char *ip_str, struct in_addr *inaddr)
-{
-       /* AF is always AF_INET for now */
-#ifdef HAVE_INET_ATON
-       if (inet_aton(ip_str, inaddr) == 0)
-               return false;
-#else
-       inaddr->s_addr = inet_addr(ip_str);
-       if (inaddr->s_addr == (unsigned)-1)
-               return false;
-#endif
-       return true;
-}
-
-
-
-
 /* -eof- */