2001-04-12 21:21:09

by Francois Romieu

[permalink] [raw]
Subject: [upatch #11] 2.4.3-ac5 - static const char *foo to static char foo[]

Hello,

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

diff -u --recursive linux-2.4.3-ac5.orig/drivers/char/keyboard.c linux-2.4.3-ac5/drivers/char/keyboard.c
--- linux-2.4.3-ac5.orig/drivers/char/keyboard.c Thu Apr 12 20:23:06 2001
+++ linux-2.4.3-ac5/drivers/char/keyboard.c Thu Apr 12 21:10:37 2001
@@ -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;


--
Ueimor