[BusyBox-cvs] busybox/networking/udhcp dhcpc.c,1.3,1.4

Erik Andersen andersen at codepoet.org
Wed Dec 11 07:46:34 UTC 2002


Update of /var/cvs/busybox/networking/udhcp
In directory winder:/tmp/cvs-serv12664/networking/udhcp

Modified Files:
	dhcpc.c 
Log Message:
Make sure we have a show_usage function prototype
 -Erik


Index: dhcpc.c
===================================================================
RCS file: /var/cvs/busybox/networking/udhcp/dhcpc.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- dhcpc.c	28 Nov 2002 11:27:29 -0000	1.3
+++ dhcpc.c	11 Dec 2002 07:46:30 -0000	1.4
@@ -77,7 +77,7 @@
 };
 
 #ifndef BB_VER
-static void show_usage(void)
+static void __attribute__ ((noreturn)) show_usage(void)
 {
 	printf(
 "Usage: udhcpc [OPTIONS]\n\n"
@@ -99,6 +99,8 @@
 	);
 	exit(0);
 }
+#else
+extern void show_usage(void) __attribute__ ((noreturn));
 #endif
 
 




More information about the busybox-cvs mailing list