Browse Source

ckdb - fix compile warnings

master
kanoi 9 years ago
parent
commit
6e4b703233
  1. 4
      src/ckdb.c
  2. 2
      src/ckdb.h

4
src/ckdb.c

@ -5578,7 +5578,7 @@ static void *socketer(void *arg)
setnow(&sock_stt); setnow(&sock_stt);
while (!everyone_die) { while (!everyone_die) {
setnow(&now1); setnow(&now1);
sockd = accept(us->sockd, NULL, SOCK_CLOEXEC); sockd = accept(us->sockd, NULL, NULL);
if (sockd < 0) { if (sockd < 0) {
int e = errno; int e = errno;
LOGERR("%s() Failed to accept on socket (%d:%s)", LOGERR("%s() Failed to accept on socket (%d:%s)",
@ -6326,7 +6326,7 @@ static void *listener(void *arg)
pthread_t mark_pt; pthread_t mark_pt;
pthread_t break_pt; pthread_t break_pt;
K_ITEM *wq_item; K_ITEM *wq_item;
time_t now; time_t now = 0;
int bq, bqp, bqd, wq0count, wqcount, wqgot; int bq, bqp, bqd, wq0count, wqcount, wqgot;
char ooo_buf[256]; char ooo_buf[256];
tv_t wq_stt, wq_fin; tv_t wq_stt, wq_fin;

2
src/ckdb.h

@ -52,7 +52,7 @@
#define DB_VLOCK "1" #define DB_VLOCK "1"
#define DB_VERSION "1.0.5" #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 " - from %s %s() line %d"
#define WHERE_FFL_HERE __FILE__, __func__, __LINE__ #define WHERE_FFL_HERE __FILE__, __func__, __LINE__

Loading…
Cancel
Save