aboutsummaryrefslogtreecommitdiff
path: root/networking/arp.c
diff options
context:
space:
mode:
Diffstat (limited to 'networking/arp.c')
-rw-r--r--networking/arp.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/networking/arp.c b/networking/arp.c
index 0099aa534..9381eb53a 100644
--- a/networking/arp.c
+++ b/networking/arp.c
@@ -32,6 +32,7 @@
32//usage: "\n -H HWTYPE Hardware address type" 32//usage: "\n -H HWTYPE Hardware address type"
33 33
34#include "libbb.h" 34#include "libbb.h"
35#include "common_bufsiz.h"
35#include "inet_common.h" 36#include "inet_common.h"
36 37
37#include <arpa/inet.h> 38#include <arpa/inet.h>
@@ -69,12 +70,13 @@ struct globals {
69 const char *device; /* current device */ 70 const char *device; /* current device */
70 smallint hw_set; /* flag if hw-type was set (-H) */ 71 smallint hw_set; /* flag if hw-type was set (-H) */
71} FIX_ALIASING; 72} FIX_ALIASING;
72#define G (*(struct globals*)&bb_common_bufsiz1) 73#define G (*(struct globals*)bb_common_bufsiz1)
73#define ap (G.ap ) 74#define ap (G.ap )
74#define hw (G.hw ) 75#define hw (G.hw )
75#define device (G.device ) 76#define device (G.device )
76#define hw_set (G.hw_set ) 77#define hw_set (G.hw_set )
77#define INIT_G() do { \ 78#define INIT_G() do { \
79 setup_common_bufsiz(); \
78 device = ""; \ 80 device = ""; \
79} while (0) 81} while (0)
80 82