diff options
author | Kelvin M. Klann <kmk3.code@protonmail.com> | 2023-05-11 14:36:11 -0300 |
---|---|---|
committer | Kelvin M. Klann <kmk3.code@protonmail.com> | 2023-05-14 16:52:49 -0300 |
commit | 727da58819051dccaa6df3304042de93c6a9876d (patch) | |
tree | 956e70fe4579ea6aef7e85c0be0b8a43f6327001 /src/firemon/usage.c | |
parent | firejail: simplify print_compiletime_support function (diff) | |
download | firejail-727da58819051dccaa6df3304042de93c6a9876d.tar.gz firejail-727da58819051dccaa6df3304042de93c6a9876d.tar.zst firejail-727da58819051dccaa6df3304042de93c6a9876d.zip |
Standardize version output
Changes:
* Only print the version line in the print_version function
* Add a print_version function where missing (put it in usage.c if the
file exists)
* Always a blank line after the version
Diffstat (limited to 'src/firemon/usage.c')
-rw-r--r-- | src/firemon/usage.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/firemon/usage.c b/src/firemon/usage.c index 1cb1b7cfc..0fb9908c5 100644 --- a/src/firemon/usage.c +++ b/src/firemon/usage.c | |||
@@ -78,7 +78,11 @@ static char *help_str = | |||
78 | "Homepage: https://firejail.wordpress.com\n" | 78 | "Homepage: https://firejail.wordpress.com\n" |
79 | "\n"; | 79 | "\n"; |
80 | 80 | ||
81 | void print_version(void) { | ||
82 | printf("firemon version %s\n\n", VERSION); | ||
83 | } | ||
84 | |||
81 | void usage(void) { | 85 | void usage(void) { |
82 | printf("firemon version %s\n", VERSION); | 86 | print_version(); |
83 | puts(help_str); | 87 | puts(help_str); |
84 | } | 88 | } |