]> arthur.barton.de Git - netatalk.git/blobdiff - libatalk/util/getiface.c
More files to ignore
[netatalk.git] / libatalk / util / getiface.c
index 52f2f7e9a45ddda324dccd508262c27f6409b83f..05af80b1d0b35cea7432f9ce38a5c69ec6c2237b 100644 (file)
@@ -92,7 +92,7 @@ static int getifaces(const int sockfd, char ***list)
     }
 
        new = (char **) malloc((ifc.ifc_len/sizeof(struct ifreq) + 1) * sizeof(char *));
-    for ( ifr = ifc.ifc_req; ifc.ifc_len >= sizeof( struct ifreq );
+    for ( ifr = ifc.ifc_req; ifc.ifc_len >= (int) sizeof( struct ifreq );
            ifc.ifc_len -= ifrsize, ifr = nextifr ) {
 #ifdef BSD4_4
        ifrsize = sizeof(ifr->ifr_name) +
@@ -117,9 +117,9 @@ static int getifaces(const int sockfd, char ***list)
  * Get interfaces from the kernel. we keep an extra null entry to signify
  * the end of the interface list. 
  */
-char **getifacelist()
+char **getifacelist(void)
 {
-  char **list;
+  char **list = NULL; /* FIXME */
   int  i, fd;
 
   if ((fd = socket(PF_INET, SOCK_STREAM, 0)) < 0)