Don't expose a constant array into global namespace.

Reported by:	Ruslan Yakovlev <quazi bk ru> via yongari
MFC after:	3 days
This commit is contained in:
Xin LI
2011-10-28 17:53:34 +00:00
parent c6fbdfd58a
commit 79b54e441b
2 changed files with 1 additions and 2 deletions
+1 -1
View File
@@ -53,7 +53,7 @@ struct tws_sense *tws_find_sense_from_mfa(struct tws_softc *sc, u_int64_t mfa);
struct error_desc array[] = {
static struct error_desc array[] = {
{ "Cannot add sysctl tree node", 0x2000, ERROR,
"%s: (0x%02X: 0x%04X): %s:\n", "ERROR" },
{ "Register window not available", 0x2001, ERROR,
-1
View File
@@ -114,7 +114,6 @@ struct error_desc {
char *error_str;
};
extern struct error_desc array[];
/* ----------- q services ------------- */
#define TWS_FREE_Q 0