diff options
author | Jan200101 <sentrycraft123@gmail.com> | 2021-05-27 23:37:23 +0200 |
---|---|---|
committer | Jan200101 <sentrycraft123@gmail.com> | 2021-05-27 23:37:23 +0200 |
commit | df1df2929646abd77955b80e3ded3574ac005179 (patch) | |
tree | 9704901455843d41180a9402ed4c0012a1d67f04 /src/common.c | |
parent | 68c20667ca775a4d4a7d1cfc3c9ec5c30f275084 (diff) | |
download | polecat-df1df2929646abd77955b80e3ded3574ac005179.tar.gz polecat-df1df2929646abd77955b80e3ded3574ac005179.zip |
allow flags to exit prematurely, move defines, add no networking flag
Diffstat (limited to 'src/common.c')
-rw-r--r-- | src/common.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/common.c b/src/common.c index fdc30af..66a470b 100644 --- a/src/common.c +++ b/src/common.c @@ -9,6 +9,14 @@ #include "common.h" +uint8_t no_net = 0; + +int set_no_net(UNUSED int argc, UNUSED char** argv) +{ + no_net = 1; + return 0; +} + void print_help(const struct Command* commands, const size_t commands_size, const struct Flag* flags, size_t flags_size) { |