diff options
Diffstat (limited to 'networking/inetd.c')
-rw-r--r-- | networking/inetd.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/networking/inetd.c b/networking/inetd.c index dce5a0885..243165a07 100644 --- a/networking/inetd.c +++ b/networking/inetd.c | |||
@@ -329,9 +329,6 @@ struct globals { | |||
329 | } FIX_ALIASING; | 329 | } FIX_ALIASING; |
330 | #define G (*(struct globals*)&bb_common_bufsiz1) | 330 | #define G (*(struct globals*)&bb_common_bufsiz1) |
331 | enum { LINE_SIZE = COMMON_BUFSIZE - offsetof(struct globals, line) }; | 331 | enum { LINE_SIZE = COMMON_BUFSIZE - offsetof(struct globals, line) }; |
332 | struct BUG_G_too_big { | ||
333 | char BUG_G_too_big[sizeof(G) <= COMMON_BUFSIZE ? 1 : -1]; | ||
334 | }; | ||
335 | #define rlim_ofile_cur (G.rlim_ofile_cur ) | 332 | #define rlim_ofile_cur (G.rlim_ofile_cur ) |
336 | #define rlim_ofile (G.rlim_ofile ) | 333 | #define rlim_ofile (G.rlim_ofile ) |
337 | #define serv_list (G.serv_list ) | 334 | #define serv_list (G.serv_list ) |
@@ -352,6 +349,7 @@ struct BUG_G_too_big { | |||
352 | #define allsock (G.allsock ) | 349 | #define allsock (G.allsock ) |
353 | #define line (G.line ) | 350 | #define line (G.line ) |
354 | #define INIT_G() do { \ | 351 | #define INIT_G() do { \ |
352 | BUILD_BUG_ON(sizeof(G) > COMMON_BUFSIZE); \ | ||
355 | rlim_ofile_cur = OPEN_MAX; \ | 353 | rlim_ofile_cur = OPEN_MAX; \ |
356 | global_queuelen = 128; \ | 354 | global_queuelen = 128; \ |
357 | config_filename = "/etc/inetd.conf"; \ | 355 | config_filename = "/etc/inetd.conf"; \ |