Mercurial > hg > dhcpcd
changeset 81:4016314de606 draft
Clean ups
| author | Roy Marples <roy@marples.name> |
|---|---|
| date | Thu, 05 Apr 2007 15:01:50 +0000 |
| parents | ea8c5f1f0382 |
| children | 550f223e6a0f |
| files | Makefile client.c interface.c signals.c socket.c |
| diffstat | 5 files changed, 5 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/Makefile Thu Apr 05 14:33:39 2007 +0000 +++ b/Makefile Thu Apr 05 15:01:50 2007 +0000 @@ -8,7 +8,7 @@ # IMPORTANT: We should be using c99 instead of gnu99 but for some reason # generic linux headers as of 2.6.19 don't allow this in asm/types.h CFLAGS += -pedantic -std=gnu99 \ - -Wall -Wextra -Wunused -Wimplicit -Wshadow -Wformat=2 \ + -Wall -Wunused -Wimplicit -Wshadow -Wformat=2 \ -Wmissing-declarations -Wno-missing-prototypes -Wwrite-strings \ -Wbad-function-cast -Wnested-externs -Wcomment -Winline \ -Wchar-subscripts -Wcast-align -Wno-format-nonliteral
--- a/client.c Thu Apr 05 14:33:39 2007 +0000 +++ b/client.c Thu Apr 05 15:01:50 2007 +0000 @@ -248,7 +248,6 @@ { switch (sig) { - break; case SIGINT: logger (LOG_INFO, "received SIGINT, stopping"); retval = (! daemonised);
--- a/interface.c Thu Apr 05 14:33:39 2007 +0000 +++ b/interface.c Thu Apr 05 15:01:50 2007 +0000 @@ -134,7 +134,7 @@ interface_t *iface; unsigned char hwaddr[16]; int hwlen = 0; - sa_family_t family; + sa_family_t family = 0; unsigned short mtu; #ifndef __linux__
--- a/signals.c Thu Apr 05 14:33:39 2007 +0000 +++ b/signals.c Thu Apr 05 15:01:50 2007 +0000 @@ -19,6 +19,7 @@ * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ +#include <sys/types.h> #include <sys/socket.h> #include <sys/select.h> #include <sys/wait.h>
--- a/socket.c Thu Apr 05 14:33:39 2007 +0000 +++ b/socket.c Thu Apr 05 15:01:50 2007 +0000 @@ -24,8 +24,8 @@ #include <sys/select.h> #include <sys/socket.h> #include <sys/uio.h> -#include <arpa/inet.h> #include <netinet/in_systm.h> +#include <netinet/in.h> #include <netinet/ip.h> #include <netinet/udp.h> #include <netinet/if_ether.h> @@ -34,6 +34,7 @@ #include <net/if_types.h> #endif #include <net/if.h> +#include <arpa/inet.h> #include <errno.h> #include <fcntl.h> #include <stdio.h>
