commit dbe301e58c3f746bd0a5d173ed6d4569bb9af906
parent 182126080ec334dc1bf6ad0c5e28177297a66a28
Author: Joris Vink <joris@coders.se>
Date: Fri, 12 Dec 2014 13:06:41 +0100
Add a patch level to our version number.
Diffstat:
3 files changed, 7 insertions(+), 6 deletions(-)
diff --git a/includes/kore.h b/includes/kore.h
@@ -50,6 +50,7 @@ extern int daemon(int, int);
#define KORE_VERSION_MAJOR 1
#define KORE_VERSION_MINOR 2
+#define KORE_VERSION_PATCH 1
#define KORE_VERSION_STATE "current"
#define errno_s strerror(errno)
diff --git a/src/http.c b/src/http.c
@@ -71,14 +71,14 @@ http_init(void)
header_buf = kore_buf_create(1024);
l = snprintf(http_version_spdy, sizeof(http_version_spdy),
- "kore (%d.%d-%s)", KORE_VERSION_MAJOR,
- KORE_VERSION_MINOR, KORE_VERSION_STATE);
+ "kore (%d.%d.%d-%s)", KORE_VERSION_MAJOR, KORE_VERSION_MINOR,
+ KORE_VERSION_PATCH, KORE_VERSION_STATE);
if (l == -1 || (size_t)l >= sizeof(http_version_spdy))
fatal("http_init(): http_version_spdy buffer too small");
l = snprintf(http_version, sizeof(http_version),
- "server: kore (%d.%d-%s)\r\n",
- KORE_VERSION_MAJOR, KORE_VERSION_MINOR, KORE_VERSION_STATE);
+ "server: kore (%d.%d.%d-%s)\r\n", KORE_VERSION_MAJOR,
+ KORE_VERSION_MINOR, KORE_VERSION_PATCH, KORE_VERSION_STATE);
if (l == -1 || (size_t)l >= sizeof(http_version))
fatal("http_init(): http_version buffer too small");
diff --git a/src/kore.c b/src/kore.c
@@ -62,8 +62,8 @@ usage(void)
static void
version(void)
{
- printf("kore %d.%d-%s ", KORE_VERSION_MAJOR,
- KORE_VERSION_MINOR, KORE_VERSION_STATE);
+ printf("kore %d.%d.%d-%s ", KORE_VERSION_MAJOR, KORE_VERSION_MINOR,
+ KORE_VERSION_PATCH, KORE_VERSION_STATE);
#if defined(KORE_USE_PGSQL)
printf("pgsql ");
#endif