aboutsummaryrefslogtreecommitdiff
path: root/gmid.c
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2021-06-29 10:56:07 +0000
committerOmar Polo <op@omarpolo.com>2021-06-29 10:56:07 +0000
commitfdb43a4c0e347c20c0f13c3145165393c6c10883 (patch)
tree968fa705136bdaab5e8bc095db3a1df895da7092 /gmid.c
parent0233b0f6b9fcbbca701d245e82fbddca20862eeb (diff)
define GMID_STRING and reuse-it
GMID_VERSION follows the CGI/FastCGI style, i.e. project_name/version. Define GMID_STRING with a more "human" variant "project_name version", and reuse that in the --help and --version codepath.
Diffstat (limited to 'gmid.c')
-rw-r--r--gmid.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gmid.c b/gmid.c
index 41abbee..3bc1055 100644
--- a/gmid.c
+++ b/gmid.c
@@ -383,7 +383,7 @@ usage(void)
fprintf(stderr,
"usage: %s [-fn] [-c config] [-P pidfile] | [-6h] [-d certs-dir] [-H host]\n"
" [-p port] [-x cgi] [dir]\n"
- "version: gmid 1.7\n",
+ "version: " GMID_STRING "\n",
getprogname());
}
@@ -579,7 +579,7 @@ main(int argc, char **argv)
break;
case 'V':
- puts("Version: 1.7");
+ puts("Version: " GMID_STRING);
return 0;
case 'v':