Skip to contentSkip to conversation

2.4.3-ac5 - static const char *foo to static char foo[]

upatch #11 Francois Romieu 1 participant 1 message Apr 12, 2001 Char and misc drivers

lore
Share & tools
lore
#0 lore raw

Hello,

it compiles fine and there is no MAINTAINER entry for it nor specific
email address in the source file.

drivers/char/keyboard.c +3 -3
diff -u --recursive linux-2.4.3-ac5.orig/drivers/char/keyboard.c linux-2.4.3-ac5/drivers/char/keyboard.c
@@ -632,8 +632,8 @@
 
 static void do_pad(unsigned char value, char up_flag)
 {
-	static const char *pad_chars = "0123456789+-*/\015,.?()";
-	static const char *app_map = "pqrstuvwxylSRQMnnmPQ";
+	static char pad_chars[] = "0123456789+-*/\015,.?()";
+	static char app_map[] = "pqrstuvwxylSRQMnnmPQ";
 
 	if (up_flag)
 		return;		/* no action, if this is a key release */
@@ -689,7 +689,7 @@
 
 static void do_cur(unsigned char value, char up_flag)
 {
-	static const char *cur_chars = "BDCA";
+	static char cur_chars[] = "BDCA";
 	if (up_flag)
 		return;
 
Signature · 1 line
Ueimor