On Sun, Nov 15, 2009 at 05:48:50PM +0100, Thomas Pfaff wrote: > On Fri, 13 Nov 2009 13:09:55 -0700 (MST) > Jonathan Gray <j...@cvs.openbsd.org> wrote: > > > CVSROOT: /cvs > > Module name: src > > Changes by: j...@cvs.openbsd.org 2009/11/13 13:09:55 > > > > Modified files: > > sbin/ipsecctl : pfkdump.c > > usr.sbin/relayctl: parser.c parser.h > > usr.sbin/dvmrpctl: parser.c parser.h > > usr.sbin/ospfctl: parser.c parser.h > > usr.sbin/ripctl: parser.c parser.h > > > > Log message: > > Don't use [] in function arguments when dealing with arrays > > we don't know the size of, otherwise gcc >= 4 will error. > > > > Sorry for intruding, but this sounds a bit strange. In a > function argument list T *, T [], and T [N] are the same, > so what's gcc doing? I don't see gcc 4.3.3 complaining ...
No, they are not always the same. T[N] implies a fixed amount of memory for example, it is the difference between complete and incomplete types. See http://gcc.gnu.org/ml/gcc/2005-02/msg00061.html for more.