Changeset 3621 in MondoRescue for branches/3.3/mindi-busybox/networking/ftpgetput.c
- Timestamp:
- Dec 20, 2016, 4:07:32 PM (7 years ago)
- Location:
- branches/3.3
- Files:
-
- 1 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/3.3/mindi-busybox/networking/ftpgetput.c
r3232 r3621 51 51 52 52 #include "libbb.h" 53 #include "common_bufsiz.h" 53 54 54 55 struct globals { … … 61 62 char buf[4]; /* actually [BUFSZ] */ 62 63 } FIX_ALIASING; 63 #define G (*(struct globals*) &bb_common_bufsiz1)64 #define G (*(struct globals*)bb_common_bufsiz1) 64 65 enum { BUFSZ = COMMON_BUFSIZE - offsetof(struct globals, buf) }; 65 struct BUG_G_too_big {66 char BUG_G_too_big[sizeof(G) <= COMMON_BUFSIZE ? 1 : -1];67 };68 66 #define user (G.user ) 69 67 #define password (G.password ) … … 73 71 #define do_continue (G.do_continue ) 74 72 #define buf (G.buf ) 75 #define INIT_G() do { } while (0) 73 #define INIT_G() do { \ 74 setup_common_bufsiz(); \ 75 BUILD_BUG_ON(sizeof(G) > COMMON_BUFSIZE); \ 76 } while (0) 76 77 77 78
Note:
See TracChangeset
for help on using the changeset viewer.