]> arthur.barton.de Git - netatalk.git/blobdiff - libatalk/util/getiface.c
Remove another call to length. This should take out the last reference to
[netatalk.git] / libatalk / util / getiface.c
index 82fe8dbfc2f067bbfe1982b63b388448007dcb68..867e6d6298eebf678b35ab669e2e69c04f2de581 100644 (file)
@@ -120,7 +120,6 @@ static int getifaces(const int sockfd, char ***list, int *length)
 char **getifacelist()
 {
   char **list;
-  char **new;
   int  length, i, fd;
 
   if ((fd = socket(PF_INET, SOCK_STREAM, 0)) < 0)
@@ -133,10 +132,6 @@ char **getifacelist()
   }
   close(fd);
 
-  if ((i < length) && 
-      (new = (char **) realloc(list, (i + 1) *  sizeof(char *))))
-    return new;
-
   return list;
 }