--- embedaddon/libnet/sample/get_addr.c 2012/02/21 22:14:23 1.1.1.1 +++ embedaddon/libnet/sample/get_addr.c 2023/09/27 11:11:38 1.1.1.3 @@ -1,5 +1,5 @@ /* - * $Id: get_addr.c,v 1.1.1.1 2012/02/21 22:14:23 misho Exp $ + * $Id: get_addr.c,v 1.1.1.3 2023/09/27 11:11:38 misho Exp $ * * libnet 1.1 * get_addr.c - Retrieve the MAC and IP address of an interface @@ -30,13 +30,7 @@ * */ -#if (HAVE_CONFIG_H) -#include "../include/config.h" -#endif #include "./libnet_test.h" -#ifdef __WIN32__ -#include "../include/win32/getopt.h" -#endif int main(int argc, char *argv[]) @@ -76,7 +70,7 @@ main(int argc, char *argv[]) exit(EXIT_FAILURE); } - printf("Interface:\t%s\n", libnet_getdevice(l)); + printf("Interface:\t%s\n", libnet_getdevice(l)); e = libnet_get_hwaddr(l); if (e == NULL) { @@ -109,4 +103,3 @@ main(int argc, char *argv[]) exit(EXIT_SUCCESS); } -/* EOF */