diff options
author | 2023-05-11 18:51:02 -0300 | |
---|---|---|
committer | 2023-05-14 16:52:49 -0300 | |
commit | 15ad8696c7cf95059f163b4f7ed86ca697e8fe1e (patch) | |
tree | 7d61eb67b0ee8118d653917fb50f446d8e6c4f9d /src/fnetfilter/main.c | |
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/fnetfilter/main.c')
-rw-r--r-- | src/fnetfilter/main.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/fnetfilter/main.c b/src/fnetfilter/main.c index 8c0f6c297..1b0335d68 100644 --- a/src/fnetfilter/main.c +++ b/src/fnetfilter/main.c | |||
@@ -45,9 +45,12 @@ static char *default_filter = | |||
45 | "-A OUTPUT -p tcp --dport 3479 -j DROP\n" | 45 | "-A OUTPUT -p tcp --dport 3479 -j DROP\n" |
46 | "COMMIT\n"; | 46 | "COMMIT\n"; |
47 | 47 | ||
48 | static const char *const usage_str = | ||
49 | "Usage:\n" | ||
50 | "\tfnetfilter netfilter-command destination-file\n"; | ||
51 | |||
48 | static void usage(void) { | 52 | static void usage(void) { |
49 | printf("Usage:\n"); | 53 | puts(usage_str); |
50 | printf("\tfnetfilter netfilter-command destination-file\n"); | ||
51 | } | 54 | } |
52 | 55 | ||
53 | static void err_exit_cannot_open_file(const char *fname) { | 56 | static void err_exit_cannot_open_file(const char *fname) { |