aboutsummaryrefslogtreecommitdiffstats
path: root/src/firemon/usage.c
diff options
context:
space:
mode:
authorLibravatar Kelvin M. Klann <kmk3.code@protonmail.com>2023-05-11 15:15:47 -0300
committerLibravatar Kelvin M. Klann <kmk3.code@protonmail.com>2023-05-14 16:52:49 -0300
commit874cf79422f168c4c583645b41227ec57aefda2e (patch)
tree5b9e2f90b54383d01089a26dd052e3a87eb8fecb /src/firemon/usage.c
parentStandardize version output (diff)
downloadfirejail-874cf79422f168c4c583645b41227ec57aefda2e.tar.gz
firejail-874cf79422f168c4c583645b41227ec57aefda2e.tar.zst
firejail-874cf79422f168c4c583645b41227ec57aefda2e.zip
Standardize usage string var declarations
Changes: * Name them all "usage_str" * Make them const For the latter item, see commit eb20f52ef ("Make list of paths const to fix a false positive of gcc analyzer", 2022-07-27) / PR #5275.
Diffstat (limited to 'src/firemon/usage.c')
-rw-r--r--src/firemon/usage.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/firemon/usage.c b/src/firemon/usage.c
index 0fb9908c5..411fc1600 100644
--- a/src/firemon/usage.c
+++ b/src/firemon/usage.c
@@ -19,7 +19,7 @@
19*/ 19*/
20#include "firemon.h" 20#include "firemon.h"
21 21
22static char *help_str = 22static const char *const usage_str =
23 "Usage: firemon [OPTIONS] [PID]\n\n" 23 "Usage: firemon [OPTIONS] [PID]\n\n"
24 "Monitor processes started in a Firejail sandbox. Without any PID specified,\n" 24 "Monitor processes started in a Firejail sandbox. Without any PID specified,\n"
25 "all processes started by Firejail are monitored. Descendants of these processes\n" 25 "all processes started by Firejail are monitored. Descendants of these processes\n"
@@ -84,5 +84,5 @@ void print_version(void) {
84 84
85void usage(void) { 85void usage(void) {
86 print_version(); 86 print_version();
87 puts(help_str); 87 puts(usage_str);
88} 88}