#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-
-#ifdef HAVE_STDINT_H
#include <stdint.h>
-#endif
-
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/ioctl.h>
}
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) +
* 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)