lib/util: Remove unused sys_inet_makeaddr()
authorAndrew Bartlett <abartlet@samba.org>
Thu, 9 Feb 2012 01:55:10 +0000 (12:55 +1100)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 17 Feb 2012 11:19:29 +0000 (12:19 +0100)
Found by callcatcher.

Andrew Bartlett

lib/util/samba_util.h
lib/util/system.c

index 56dbc059d83967348f99d2fb11d76687866dd4d9..a0989d54794ae996c8621ceb0e10d807bcc480d0 100644 (file)
@@ -117,8 +117,6 @@ void CatchChildLeaveStatus(void);
 
 void *sys_memalign( size_t align, size_t size );
 
-_PUBLIC_ struct in_addr sys_inet_makeaddr(int net, int host);
-
 /**
  * Wrapper for fork used to invalid pid cache.
  **/
index 3783e3243c00141e15634db7ea68f84ef21762c1..8625229404aa4a98e901faa622f31e1b46db9f0a 100644 (file)
@@ -75,15 +75,6 @@ void *sys_memalign( size_t align, size_t size )
 #endif
 }
 
-_PUBLIC_ struct in_addr sys_inet_makeaddr(int net, int host)
-{
-       struct in_addr in;
-       struct in_addr in2;
-       in = inet_makeaddr(net, host);
-       in2.s_addr = in.s_addr;
-       return in2;
-}
-
 /**************************************************************************
  Wrapper for fork. Ensures we clear our pid cache.
 ****************************************************************************/