diff options
author | 2023-05-11 18:51:02 -0300 | |
---|---|---|
committer | 2023-05-14 16:52:49 -0300 | |
commit | 15ad8696c7cf95059f163b4f7ed86ca697e8fe1e (patch) | |
tree | 7d61eb67b0ee8118d653917fb50f446d8e6c4f9d /src/ftee | |
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/ftee')
-rw-r--r-- | src/ftee/main.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ftee/main.c b/src/ftee/main.c index 0a492b41e..a34a76b26 100644 --- a/src/ftee/main.c +++ b/src/ftee/main.c | |||
@@ -180,8 +180,11 @@ static int is_link(const char *fname) { | |||
180 | return 0; | 180 | return 0; |
181 | } | 181 | } |
182 | 182 | ||
183 | static const char *const usage_str = | ||
184 | "Usage: ftee filename\n"; | ||
185 | |||
183 | static void usage(void) { | 186 | static void usage(void) { |
184 | printf("Usage: ftee filename\n"); | 187 | puts(usage_str); |
185 | } | 188 | } |
186 | 189 | ||
187 | int main(int argc, char **argv) { | 190 | int main(int argc, char **argv) { |