aboutsummaryrefslogtreecommitdiffstats
path: root/src/firemon/firemon.c
diff options
context:
space:
mode:
authorLibravatar Kelvin M. Klann <kmk3.code@protonmail.com>2023-05-11 14:36:11 -0300
committerLibravatar Kelvin M. Klann <kmk3.code@protonmail.com>2023-05-14 16:52:49 -0300
commit727da58819051dccaa6df3304042de93c6a9876d (patch)
tree956e70fe4579ea6aef7e85c0be0b8a43f6327001 /src/firemon/firemon.c
parentfirejail: simplify print_compiletime_support function (diff)
downloadfirejail-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/firemon.c')
-rw-r--r--src/firemon/firemon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/firemon/firemon.c b/src/firemon/firemon.c
index d82f387ff..958fa1b03 100644
--- a/src/firemon/firemon.c
+++ b/src/firemon/firemon.c
@@ -145,7 +145,7 @@ int main(int argc, char **argv) {
145 return 0; 145 return 0;
146 } 146 }
147 else if (strcmp(argv[i], "--version") == 0) { 147 else if (strcmp(argv[i], "--version") == 0) {
148 printf("firemon version %s\n\n", VERSION); 148 print_version();
149 return 0; 149 return 0;
150 } 150 }
151 else if (strcmp(argv[i], "--debug") == 0) 151 else if (strcmp(argv[i], "--debug") == 0)