diff options
author | 2023-05-11 18:51:02 -0300 | |
---|---|---|
committer | 2023-05-14 16:52:49 -0300 | |
commit | 15ad8696c7cf95059f163b4f7ed86ca697e8fe1e (patch) | |
tree | 7d61eb67b0ee8118d653917fb50f446d8e6c4f9d /src/fnettrace-dns | |
parent | Standardize usage string var declarations (diff) | |
download | firejail-15ad8696c7cf95059f163b4f7ed86ca697e8fe1e.tar.gz firejail-15ad8696c7cf95059f163b4f7ed86ca697e8fe1e.tar.zst firejail-15ad8696c7cf95059f163b4f7ed86ca697e8fe1e.zip |
Move usage text into usage_str var
For consistency and readability.
Note: This also makes exactly one extra blank line be printed at the end
of every usage text, which is currently only done in the following
files:
* src/fcopy/main.c
* src/fnettrace-dns/main.c
* src/fnettrace-icmp/main.c
* src/fnettrace-sni/main.c
* src/fnettrace/main.c
* src/profstats/main.c
Diffstat (limited to 'src/fnettrace-dns')
-rw-r--r-- | src/fnettrace-dns/main.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/fnettrace-dns/main.c b/src/fnettrace-dns/main.c index 64feec5fe..1cde1942c 100644 --- a/src/fnettrace-dns/main.c +++ b/src/fnettrace-dns/main.c | |||
@@ -167,13 +167,13 @@ static void run_trace(void) { | |||
167 | 167 | ||
168 | close(s); | 168 | close(s); |
169 | } | 169 | } |
170 | 170 | static const char *const usage_str = | |
171 | "Usage: fnettrace-dns [OPTIONS]\n" | ||
172 | "Options:\n" | ||
173 | " --help, -? - this help screen\n"; | ||
171 | 174 | ||
172 | static void usage(void) { | 175 | static void usage(void) { |
173 | printf("Usage: fnettrace-dns [OPTIONS]\n"); | 176 | puts(usage_str); |
174 | printf("Options:\n"); | ||
175 | printf(" --help, -? - this help screen\n"); | ||
176 | printf("\n"); | ||
177 | } | 177 | } |
178 | 178 | ||
179 | int main(int argc, char **argv) { | 179 | int main(int argc, char **argv) { |