← Commit list

7389662db

Denys Vlasenko
Denys Vlasenko
2017-08-06
SUCCESS Duration: 143s

Subject

svc: remove superfluout INIT_G()

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

runit/sv.c+2 -6
@@ -205,10 +205,8 @@ struct globals {
#define islog (G.islog )
#define INIT_G() do { \
setup_common_bufsiz(); \
- /* need to zero out, we are NOEXEC */ \
- rc = EXIT_SUCCESS; \
- islog = 0; \
- /* other fields need not be zero */ \
+ /* need to zero out, svc calls sv() repeatedly */ \
+ memset(&G, 0, sizeof(G)); \
} while (0)
@@ -707,8 +705,6 @@ int svc_main(int argc UNUSED_PARAM, char **argv)
const char *optstring;
unsigned opts;
- INIT_G();
-
optstring = "udopchaitkx";
opts = getopt32(argv, optstring);
argv += optind;