lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Message-Id: <d7a719b0edd2bbf0b5a90c02aff635996c15e38d.1284435710.git.joe@perches.com> Date: Mon, 13 Sep 2010 21:24:01 -0700 From: Joe Perches <joe@...ches.com> To: linux-kernel@...r.kernel.org Cc: Samuel Ortiz <samuel@...tiz.org>, "David S. Miller" <davem@...emloft.net>, netdev@...r.kernel.org Subject: [PATCH next 15/16] net/irda: Use static const char * const where possible Signed-off-by: Joe Perches <joe@...ches.com> --- include/net/irda/irlan_event.h | 2 +- net/irda/irlan/irlan_event.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/net/irda/irlan_event.h b/include/net/irda/irlan_event.h index 6d9539f..018b5a7 100644 --- a/include/net/irda/irlan_event.h +++ b/include/net/irda/irlan_event.h @@ -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); diff --git a/net/irda/irlan/irlan_event.c b/net/irda/irlan/irlan_event.c index cbcb4eb..43f1604 100644 --- a/net/irda/irlan/irlan_event.c +++ b/net/irda/irlan/irlan_event.c @@ -24,7 +24,7 @@ #include <net/irda/irlan_event.h> -char *irlan_state[] = { +const char * const irlan_state[] = { "IRLAN_IDLE", "IRLAN_QUERY", "IRLAN_CONN", -- 1.7.3.rc1 -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@...r.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists