lkml.org 
[lkml]   [2000]   [Nov]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] Re: test11-pre5
   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/

\
 
 \ /
  Last update: 2005-03-22 12:45    [W:0.789 / U:0.024 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site