Skip to content

Commit 6457f82

Browse files
committed
addrtoname.c: make several structs static
1 parent ec7a564 commit 6457f82

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

addrtoname.c

+11-11
Original file line numberDiff line numberDiff line change
@@ -86,12 +86,12 @@ struct hnamemem {
8686
struct hnamemem *nxt;
8787
};
8888

89-
struct hnamemem hnametable[HASHNAMESIZE];
90-
struct hnamemem tporttable[HASHNAMESIZE];
91-
struct hnamemem uporttable[HASHNAMESIZE];
92-
struct hnamemem eprototable[HASHNAMESIZE];
93-
struct hnamemem dnaddrtable[HASHNAMESIZE];
94-
struct hnamemem ipxsaptable[HASHNAMESIZE];
89+
static struct hnamemem hnametable[HASHNAMESIZE];
90+
static struct hnamemem tporttable[HASHNAMESIZE];
91+
static struct hnamemem uporttable[HASHNAMESIZE];
92+
static struct hnamemem eprototable[HASHNAMESIZE];
93+
static struct hnamemem dnaddrtable[HASHNAMESIZE];
94+
static struct hnamemem ipxsaptable[HASHNAMESIZE];
9595

9696
#if defined(INET6) && defined(WIN32)
9797
/*
@@ -140,7 +140,7 @@ struct h6namemem {
140140
struct h6namemem *nxt;
141141
};
142142

143-
struct h6namemem h6nametable[HASHNAMESIZE];
143+
static struct h6namemem h6nametable[HASHNAMESIZE];
144144
#endif /* INET6 */
145145

146146
struct enamemem {
@@ -153,9 +153,9 @@ struct enamemem {
153153
struct enamemem *e_nxt;
154154
};
155155

156-
struct enamemem enametable[HASHNAMESIZE];
157-
struct enamemem nsaptable[HASHNAMESIZE];
158-
struct enamemem bytestringtable[HASHNAMESIZE];
156+
static struct enamemem enametable[HASHNAMESIZE];
157+
static struct enamemem nsaptable[HASHNAMESIZE];
158+
static struct enamemem bytestringtable[HASHNAMESIZE];
159159

160160
struct protoidmem {
161161
u_int32_t p_oui;
@@ -164,7 +164,7 @@ struct protoidmem {
164164
struct protoidmem *p_nxt;
165165
};
166166

167-
struct protoidmem protoidtable[HASHNAMESIZE];
167+
static struct protoidmem protoidtable[HASHNAMESIZE];
168168

169169
/*
170170
* A faster replacement for inet_ntoa().

0 commit comments

Comments
 (0)