commit 2c1352b226e5b5890ce53f62d845ec31d4f8963d
parent 341172f844b6d17e4b40ad7fb0da332b760895cc
Author: Joris Vink <joris@coders.se>
Date: Tue, 16 Jul 2013 15:30:20 +0200
remove versioning numbers, i hate them.
Diffstat:
3 files changed, 2 insertions(+), 11 deletions(-)
diff --git a/includes/kore.h b/includes/kore.h
@@ -38,9 +38,6 @@
#define KORE_RESULT_OK 1
#define KORE_RESULT_RETRY 2
-#define KORE_VERSION_MAJOR 0
-#define KORE_VERSION_MINOR 1
-#define KORE_VERSION_PATCH 0
#define KORE_NAME_STRING "kore"
#define errno_s strerror(errno)
@@ -212,7 +209,6 @@ extern char *runas_user;
extern char *kore_module_onload;
extern char *kore_pidfile;
extern char *config_file;
-extern char kore_version_string[];
extern char *kore_ssl_cipher_list;
extern u_int64_t spdy_idle_time;
diff --git a/src/http.c b/src/http.c
@@ -226,7 +226,7 @@ http_response(struct http_request *req, int status, u_int8_t *d, u_int32_t len)
hblock = spdy_header_block_create(SPDY_HBLOCK_NORMAL);
spdy_header_block_add(hblock, ":status", sbuf);
spdy_header_block_add(hblock, ":version", "HTTP/1.1");
- spdy_header_block_add(hblock, ":server", kore_version_string);
+ spdy_header_block_add(hblock, ":server", KORE_NAME_STRING);
TAILQ_FOREACH(hdr, &(req->resp_headers), list)
spdy_header_block_add(hblock, hdr->header, hdr->value);
@@ -259,7 +259,7 @@ http_response(struct http_request *req, int status, u_int8_t *d, u_int32_t len)
kore_buf_appendf(buf, "Content-length: %d\r\n", len);
kore_buf_appendf(buf, "Connection: keep-alive\r\n");
kore_buf_appendf(buf, "Keep-Alive: timeout=20\r\n");
- kore_buf_appendf(buf, "Server: %s\r\n", kore_version_string);
+ kore_buf_appendf(buf, "Server: %s\r\n", KORE_NAME_STRING);
TAILQ_FOREACH(hdr, &(req->resp_headers), list) {
kore_buf_appendf(buf, "%s: %s\r\n",
diff --git a/src/kore.c b/src/kore.c
@@ -32,7 +32,6 @@ u_int8_t worker_count = 0;
char *server_ip = NULL;
char *runas_user = NULL;
char *chroot_path = NULL;
-char kore_version_string[32];
char *kore_pidfile = KORE_PIDFILE_DEFAULT;
char *kore_ssl_cipher_list = KORE_DEFAULT_CIPHER_LIST;
@@ -164,10 +163,6 @@ kore_server_start(void)
kore_log(LOG_NOTICE, "kore is starting up");
kore_platform_proctitle("kore [parent]");
-
- snprintf(kore_version_string, sizeof(kore_version_string),
- "%s-%d.%d.%d", KORE_NAME_STRING, KORE_VERSION_MAJOR,
- KORE_VERSION_MINOR, KORE_VERSION_PATCH);
kore_worker_init();
for (;;) {