Skip to content

Commit 55b1804

Browse files
JoePerchesdavem330
authored andcommitted
net/irda: Use static const char * const where possible
Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 030bda0 commit 55b1804

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

include/net/irda/irlan_event.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ typedef enum {
6767
IRLAN_WATCHDOG_TIMEOUT,
6868
} IRLAN_EVENT;
6969

70-
extern char *irlan_state[];
70+
extern const char * const irlan_state[];
7171

7272
void irlan_do_client_event(struct irlan_cb *self, IRLAN_EVENT event,
7373
struct sk_buff *skb);

net/irda/irlan/irlan_event.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
#include <net/irda/irlan_event.h>
2626

27-
char *irlan_state[] = {
27+
const char * const irlan_state[] = {
2828
"IRLAN_IDLE",
2929
"IRLAN_QUERY",
3030
"IRLAN_CONN",

0 commit comments

Comments
 (0)