Skip to contentSkip to conversation

2.2 Trivial patches

PATCH New Rusty Russell 1 participant 1 message Feb 18, 2002

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 2.2 Trivial patches

Hi Alan,

Just one trivial patch this week for 2.2.

Cheers!
Rusty.

Trivial patch update against 2.2.21-pre2:
Ren� Scharfe <[email protected]>: [PATCH] compiler warnings in scripts_tkgen.c:
this patch fixes two compiler warnings during make xconfig which turn up if one uses -Wshadow

home/rusty/devel/kernel/trivial-2.2.21-pre2/scripts/tkgen.c renamed from home/rusty/devel/kernel/linux-2.2.21-pre2/scripts/tkgen.c +4 -4
diff -urN -I \$.*\$ --exclude TAGS -X /home/rusty/devel/kernel/kernel-patches/current-dontdiff --minimal /home/rusty/devel/kernel/linux-2.2.21-pre2/scripts/tkgen.c /home/rusty/devel/kernel/trivial-2.2.21-pre2/scripts/tkgen.c
@@ -587,11 +587,11 @@
 	case token_int:
 	    if ( cfg->value && *cfg->value == '$' )
 	    {
-		int index = get_varnum( cfg->value+1 );
+		int i = get_varnum( cfg->value+1 );
 		printf( "\n" );
-		if ( ! vartable[index].global_written )
+		if ( ! vartable[i].global_written )
 		{
-		    global( vartable[index].name );
+		    global( vartable[i].name );
 		}
 		printf( "\t" );
 	    }
@@ -956,7 +956,6 @@
 static void end_proc( struct kconfig * scfg, int menu_num )
 {
     struct kconfig * cfg;
-    int i;
 
     printf( "\n\n\n" );
     printf( "\tfocus $w\n" );
@@ -1051,6 +1050,7 @@
 	    {
 		if ( cfg->token == token_tristate )
 		{
+		    int i;
 		    if ( ! vartable[cfg->nameindex].global_written )
 		    {
 			vartable[cfg->nameindex].global_written = 1;

--
Anyone who quotes me in their sig is an idiot. -- Rusty Russell.