Re: [PATCH] Re: test11-pre5

From: David S. Miller (davem@redhat.com)
Date: Tue Nov 14 2000 - 19:25:46 EST


   Date: Wed, 15 Nov 2000 02:25:38 +0200 (IST)
   From: Dan Aloni <karrde@callisto.yi.org>

   Agreed. BTW, after grepping for IFNAMSIZ references I've noticed
   some architectures (sparc64, mips64) define IFNAMSIZ for
   themsleves, for example, arch/sparc64/kernel/ioctl32.c, which
   defines it to 16, the same include/linux/if.h does. But if they are
   not the same?

Then the compiler will start warning us :-)

#define FOO 6
#define FOO 6
int main(void)
{
        return FOO;
}
? gcc -Wall -o test test.c
?
#define FOO 6
#define FOO 7
int main(void)
{
        return FOO;
}
? gcc -Wall -o test test.c
test.c:2: warning: `FOO' redefined
test.c:1: warning: this is the location of the previous definition
?

Later,
David S. Miller
davem@redhat.com
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed Nov 15 2000 - 21:00:27 EST