From 6e4b7032339daa3f8afdabb33e733cba09793eb5 Mon Sep 17 00:00:00 2001 From: kanoi Date: Fri, 29 Apr 2016 23:06:41 +1000 Subject: [PATCH] ckdb - fix compile warnings --- src/ckdb.c | 4 ++-- src/ckdb.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ckdb.c b/src/ckdb.c index 1ca385ed..fe8f1a53 100644 --- a/src/ckdb.c +++ b/src/ckdb.c @@ -5578,7 +5578,7 @@ static void *socketer(void *arg) setnow(&sock_stt); while (!everyone_die) { setnow(&now1); - sockd = accept(us->sockd, NULL, SOCK_CLOEXEC); + sockd = accept(us->sockd, NULL, NULL); if (sockd < 0) { int e = errno; LOGERR("%s() Failed to accept on socket (%d:%s)", @@ -6326,7 +6326,7 @@ static void *listener(void *arg) pthread_t mark_pt; pthread_t break_pt; K_ITEM *wq_item; - time_t now; + time_t now = 0; int bq, bqp, bqd, wq0count, wqcount, wqgot; char ooo_buf[256]; tv_t wq_stt, wq_fin; diff --git a/src/ckdb.h b/src/ckdb.h index acbf681d..7900877c 100644 --- a/src/ckdb.h +++ b/src/ckdb.h @@ -52,7 +52,7 @@ #define DB_VLOCK "1" #define DB_VERSION "1.0.5" -#define CKDB_VERSION DB_VERSION"-2.100" +#define CKDB_VERSION DB_VERSION"-2.101" #define WHERE_FFL " - from %s %s() line %d" #define WHERE_FFL_HERE __FILE__, __func__, __LINE__