]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
net/irda: Use static const char * const where possible
authorJoe Perches <joe@perches.com>
Mon, 13 Sep 2010 18:24:01 +0000 (18:24 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 15 Sep 2010 03:22:05 +0000 (20:22 -0700)
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/irda/irlan_event.h
net/irda/irlan/irlan_event.c

index 6d9539f05806a63efc03757bcadca6b496c59ae8..018b5a77e61087ccd6bc104f2944759a7bdd263d 100644 (file)
@@ -67,7 +67,7 @@ typedef enum {
        IRLAN_WATCHDOG_TIMEOUT,
 } IRLAN_EVENT;
 
-extern char *irlan_state[];
+extern const char * const irlan_state[];
 
 void irlan_do_client_event(struct irlan_cb *self, IRLAN_EVENT event, 
                           struct sk_buff *skb);
index cbcb4eb54037bb71db6ddd8cb5cf03118509c499..43f16040a6fe0f3016ae66136c84573e6d97be8f 100644 (file)
@@ -24,7 +24,7 @@
 
 #include <net/irda/irlan_event.h>
 
-char *irlan_state[] = {
+const char * const irlan_state[] = {
        "IRLAN_IDLE",
        "IRLAN_QUERY",
        "IRLAN_CONN",