lkml.org 
[lkml]   [2010]   [Sep]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 22/25] net/dsa: Use static const char arrays
Date
Signed-off-by: Joe Perches <joe@perches.com>
---
net/dsa/dsa.c | 2 +-
net/dsa/dsa_priv.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/net/dsa/dsa.c b/net/dsa/dsa.c
index 6112a12..cca6a10 100644
--- a/net/dsa/dsa.c
+++ b/net/dsa/dsa.c
@@ -15,7 +15,7 @@
#include <net/dsa.h>
#include "dsa_priv.h"

-char dsa_driver_version[] = "0.1";
+const char dsa_driver_version[] = "0.1";


/* switch driver registration ***********************************************/
diff --git a/net/dsa/dsa_priv.h b/net/dsa/dsa_priv.h
index 4b0ea05..634c22d 100644
--- a/net/dsa/dsa_priv.h
+++ b/net/dsa/dsa_priv.h
@@ -158,7 +158,7 @@ struct dsa_switch_driver {
};

/* dsa.c */
-extern char dsa_driver_version[];
+extern const char dsa_driver_version[];
void register_switch_driver(struct dsa_switch_driver *type);
void unregister_switch_driver(struct dsa_switch_driver *type);

--
1.7.3.rc1


\
 
 \ /
  Last update: 2010-09-13 21:53    [from the cache]
©2003-2011 Jasper Spaans