diff options
author | Kelvin M. Klann <kmk3.code@protonmail.com> | 2023-05-11 18:51:02 -0300 |
---|---|---|
committer | Kelvin M. Klann <kmk3.code@protonmail.com> | 2023-05-14 16:52:49 -0300 |
commit | 15ad8696c7cf95059f163b4f7ed86ca697e8fe1e (patch) | |
tree | 7d61eb67b0ee8118d653917fb50f446d8e6c4f9d /src/fsec-print | |
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/fsec-print')
-rw-r--r-- | src/fsec-print/main.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/fsec-print/main.c b/src/fsec-print/main.c index 696c6bc0c..4d3e38648 100644 --- a/src/fsec-print/main.c +++ b/src/fsec-print/main.c | |||
@@ -19,9 +19,12 @@ | |||
19 | */ | 19 | */ |
20 | #include "fsec_print.h" | 20 | #include "fsec_print.h" |
21 | 21 | ||
22 | static const char *const usage_str = | ||
23 | "Usage:\n" | ||
24 | "\tfsec-print file - disassemble seccomp filter\n"; | ||
25 | |||
22 | static void usage(void) { | 26 | static void usage(void) { |
23 | printf("Usage:\n"); | 27 | puts(usage_str); |
24 | printf("\tfsec-print file - disassemble seccomp filter\n"); | ||
25 | } | 28 | } |
26 | 29 | ||
27 | int arg_quiet = 0; | 30 | int arg_quiet = 0; |