OSDN Git Service

[GCC4] fix build error in drivers/net/arlan.c
authorWilly Tarreau <w@1wt.eu>
Sun, 13 Aug 2006 10:44:07 +0000 (12:44 +0200)
committerWilly Tarreau <w@1wt.eu>
Sun, 13 Aug 2006 15:19:20 +0000 (17:19 +0200)
This patch fixes these errors with gcc 4 :

arlan.c:15: error: static declaration of 'arlan_version' follows non-static declaration
arlan.h:54: error: previous declaration of 'arlan_version' was here
arlan.c:23: error: static declaration of 'siteName' follows non-static declaration
arlan.h:50: error: previous declaration of 'siteName' was here

drivers/net/arlan.c
drivers/net/arlan.h

index 204e651..f61269a 100644 (file)
@@ -12,7 +12,7 @@
 #  error FIXME: this driver requires a 32-bit platform
 #endif
 
-static const char *arlan_version = "C.Jennigs 97 & Elmer.Joandi@ut.ee  Oct'98, http://www.ylenurme.ee/~elmer/655/";
+const char *arlan_version = "C.Jennigs 97 & Elmer.Joandi@ut.ee  Oct'98, http://www.ylenurme.ee/~elmer/655/";
 
 struct net_device *arlan_device[MAX_ARLANS];
 int last_arlan;
index f0c19ea..b80ea02 100644 (file)
@@ -47,7 +47,6 @@ extern int    init_arlan_proc(void);
 
 extern struct net_device *arlan_device[MAX_ARLANS];
 extern int     arlan_debug;
-extern char *  siteName;
 extern int     arlan_entry_debug;
 extern int     arlan_exit_debug;
 extern int     testMemory;