cvs commit: src/sys/dev/netif/ie

Matthew Dillon dillon at apollo.backplane.com
Wed Sep 15 13:57:23 PDT 2004


:joerg       2004/09/15 13:05:13 PDT
:
:DragonFly src repository
:
:  Modified files:
:    sys/dev/netif/ie     if_ie.c 
:  Log:
:  Move the timer declaration a bit up. I don't know why GCC 3.4 works and
:  2.95 doesn't.
:  
:  Revision  Changes    Path
:  1.16      +2 -2      src/sys/dev/netif/ie/if_ie.c
:
:
:http://www.dragonflybsd.org/cvsweb/src/sys/dev/netif/ie/if_ie.c.diff?r1=1.15&r2=1.16&f=u

    It's because Gcc-3.x allows declarations to occur after statements,
    whereas 2.95 only allows declarations to occur at the beginning of 
    a block.  Traditionally C has only allowed declarations to occur
    at the beginning of a block.  It's either a GCCism or a C99 thing. 
    I think it's a dumb idea myself (gcc allowing declarations after
    statements), C is messy enough as it stands.  So its just as well
    that you fixed it :-)

					-Matt
					Matthew Dillon 
					<dillon at xxxxxxxxxxxxx>

    {
	int a;
	int b;

	fubar();
	...
    }

    vs

    {
	fubar();

	int a;
	int b;

	...
    }





More information about the Commits mailing list