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

Erik Andersen andersen at codepoet.org
Wed Dec 11 14:49:03 UTC 2002


On Wed Dec 11, 2002 at 02:10:58PM -0700, Russ Dill wrote:
> > -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)

One is a function declaration.  The other is the actual function
implementation.  gcc can be kindof wierd that way -- it wants
things declared one way but implemented a bit different.

 -Erik

--
Erik B. Andersen             http://codepoet-consulting.com/
--This message was written using 73% post-consumer electrons--



More information about the busybox mailing list