diff options
author | Ron Yorston <rmy@pobox.com> | 2015-10-13 14:45:51 +0100 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2015-10-13 14:45:51 +0100 |
commit | 8e509f11bceeec419abc718300bef7422d1fee4c (patch) | |
tree | fdfbc752ad94102e3613a5d7254f14a93eaf7f56 /networking/tc.c | |
parent | 420f5edfe7676fe6e7cddbbf15c04649d096e422 (diff) | |
parent | 4d0c1ea4784c9844f8468d97ca5c26d3c70f9921 (diff) | |
download | busybox-w32-8e509f11bceeec419abc718300bef7422d1fee4c.tar.gz busybox-w32-8e509f11bceeec419abc718300bef7422d1fee4c.tar.bz2 busybox-w32-8e509f11bceeec419abc718300bef7422d1fee4c.zip |
Merge branch 'busybox' into merge
Diffstat (limited to 'networking/tc.c')
-rw-r--r-- | networking/tc.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/networking/tc.c b/networking/tc.c index 76e2e8359..6d1fef993 100644 --- a/networking/tc.c +++ b/networking/tc.c | |||
@@ -64,15 +64,14 @@ struct globals { | |||
64 | uint32_t filter_proto; | 64 | uint32_t filter_proto; |
65 | } FIX_ALIASING; | 65 | } FIX_ALIASING; |
66 | #define G (*(struct globals*)&bb_common_bufsiz1) | 66 | #define G (*(struct globals*)&bb_common_bufsiz1) |
67 | struct BUG_G_too_big { | ||
68 | char BUG_G_too_big[sizeof(G) <= COMMON_BUFSIZE ? 1 : -1]; | ||
69 | }; | ||
70 | #define filter_ifindex (G.filter_ifindex) | 67 | #define filter_ifindex (G.filter_ifindex) |
71 | #define filter_qdisc (G.filter_qdisc) | 68 | #define filter_qdisc (G.filter_qdisc) |
72 | #define filter_parent (G.filter_parent) | 69 | #define filter_parent (G.filter_parent) |
73 | #define filter_prio (G.filter_prio) | 70 | #define filter_prio (G.filter_prio) |
74 | #define filter_proto (G.filter_proto) | 71 | #define filter_proto (G.filter_proto) |
75 | #define INIT_G() do { } while (0) | 72 | #define INIT_G() do { \ |
73 | BUILD_BUG_ON(sizeof(G) > COMMON_BUFSIZE); \ | ||
74 | } while (0) | ||
76 | 75 | ||
77 | /* Allocates a buffer containing the name of a class id. | 76 | /* Allocates a buffer containing the name of a class id. |
78 | * The caller must free the returned memory. */ | 77 | * The caller must free the returned memory. */ |