mirror of https://github.com/mirror/busybox.git
svc: remove superfluout INIT_G()
function old new delta sv 1297 1296 -1 svc_main 162 145 -17 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>1_28_stable
parent
b9be780705
commit
7389662dbf
|
@ -205,10 +205,8 @@ struct globals {
|
||||||
#define islog (G.islog )
|
#define islog (G.islog )
|
||||||
#define INIT_G() do { \
|
#define INIT_G() do { \
|
||||||
setup_common_bufsiz(); \
|
setup_common_bufsiz(); \
|
||||||
/* need to zero out, we are NOEXEC */ \
|
/* need to zero out, svc calls sv() repeatedly */ \
|
||||||
rc = EXIT_SUCCESS; \
|
memset(&G, 0, sizeof(G)); \
|
||||||
islog = 0; \
|
|
||||||
/* other fields need not be zero */ \
|
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
|
|
||||||
|
@ -707,8 +705,6 @@ int svc_main(int argc UNUSED_PARAM, char **argv)
|
||||||
const char *optstring;
|
const char *optstring;
|
||||||
unsigned opts;
|
unsigned opts;
|
||||||
|
|
||||||
INIT_G();
|
|
||||||
|
|
||||||
optstring = "udopchaitkx";
|
optstring = "udopchaitkx";
|
||||||
opts = getopt32(argv, optstring);
|
opts = getopt32(argv, optstring);
|
||||||
argv += optind;
|
argv += optind;
|
||||||
|
|
Loading…
Reference in New Issue