aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gmid.c4
-rw-r--r--gmid.h1
2 files changed, 3 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':
diff --git a/gmid.h b/gmid.h
index 731a4fd..34b210d 100644
--- a/gmid.h
+++ b/gmid.h
@@ -38,6 +38,7 @@
#include <openssl/x509.h>
+#define GMID_STRING "gmid 1.7"
#define GMID_VERSION "gmid/1.7"
#define GEMINI_URL_LEN (1024+3) /* URL max len + \r\n + \0 */