changeset 1423:fc6c21cccbf7 draft dhcpcd-4

Add -fno-common to debugging CFLAGS. Declare udp_dhcp_len as extern.
author Roy Marples <roy@marples.name>
date Thu, 24 Sep 2009 21:20:02 +0000
parents 09125f5f5e5b
children
files mk/cc.mk net.h
diffstat 2 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mk/cc.mk	Tue Sep 22 06:22:50 2009 +0000
+++ b/mk/cc.mk	Thu Sep 24 21:20:02 2009 +0000
@@ -14,7 +14,8 @@
 		-Wmissing-declarations -Wno-missing-prototypes -Wwrite-strings \
 		-Wbad-function-cast -Wnested-externs -Wcomment -Winline \
 		-Wchar-subscripts -Wcast-align -Wno-format-nonliteral \
-		-Wdeclaration-after-statement -Wsequence-point -Wextra
+		-Wdeclaration-after-statement -Wsequence-point -Wextra \
+		-fno-common
 _CC_FLAGS_SH=	if ! test -d .git; then echo ""; else for f in ${_CCFLAGS}; do \
 		if ${CC} $$f -S -o /dev/null -xc /dev/null >/dev/null 2>&1; \
 		then printf "%s" "$$f "; fi \
--- a/net.h	Tue Sep 22 06:22:50 2009 +0000
+++ b/net.h	Thu Sep 24 21:20:02 2009 +0000
@@ -156,7 +156,7 @@
 void free_routes(struct rt *);
 
 int open_udp_socket(struct interface *);
-const size_t udp_dhcp_len;
+extern const size_t udp_dhcp_len;
 ssize_t make_udp_packet(uint8_t **, const uint8_t *, size_t,
 			struct in_addr, struct in_addr);
 ssize_t get_udp_data(const uint8_t **, const uint8_t *);