[BusyBox] Re: [BusyBox-cvs] busybox/networking/udhcp dhcpc.c,1.3,1.4
Russ Dill
Russ.Dill at asu.edu
Wed Dec 11 14:06:06 UTC 2002
On Wed, 2002-12-11 at 00:46, Erik Andersen wrote:
> 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
Why are is __attribute__ moved around in the two different declarations
(applying this upstream)
More information about the busybox
mailing list