]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
[S390] drivers/s390/char: Use static const char arrays
authorJoe Perches <joe@perches.com>
Mon, 25 Oct 2010 14:10:20 +0000 (16:10 +0200)
committerMartin Schwidefsky <sky@mschwide.boeblingen.de.ibm.com>
Mon, 25 Oct 2010 14:10:16 +0000 (16:10 +0200)
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/char/vmlogrdr.c

index 0d6dc4b92cc2daacc90a2a8e5210d84b560e7a72..9f661426e4a1e28494bbe3054ee412696e0a6ad1 100644 (file)
@@ -215,7 +215,7 @@ static void vmlogrdr_iucv_message_pending(struct iucv_path *path,
 
 static int vmlogrdr_get_recording_class_AB(void)
 {
-       char cp_command[]="QUERY COMMAND RECORDING ";
+       static const char cp_command[] = "QUERY COMMAND RECORDING ";
        char cp_response[80];
        char *tail;
        int len,i;
@@ -638,7 +638,7 @@ static ssize_t vmlogrdr_recording_status_show(struct device_driver *driver,
                                              char *buf)
 {
 
-       char cp_command[] = "QUERY RECORDING ";
+       static const char cp_command[] = "QUERY RECORDING ";
        int len;
 
        cpcmd(cp_command, buf, 4096, NULL);