X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=src%2Fcheckdb.c;h=f9677485e37dd07119aaf2deaef7888987257b8a;hb=HEAD;hp=45ef1368b9f7310abd62deac424e94d73e15565b;hpb=222e1b0003536cf7b47858961d4b56d45c6d6606;p=srvx.git diff --git a/src/checkdb.c b/src/checkdb.c index 45ef136..f967748 100644 --- a/src/checkdb.c +++ b/src/checkdb.c @@ -18,7 +18,7 @@ void log_module(UNUSED_ARG(struct log_type *lt), UNUSED_ARG(enum log_severity ls /* and because saxdb is tied in to lots of stuff.. */ -time_t now; +unsigned long now; void *conf_get_data(UNUSED_ARG(const char *full_path), UNUSED_ARG(enum recdb_type type)) { return NULL; @@ -30,10 +30,10 @@ void conf_register_reload(UNUSED_ARG(conf_reload_func crf)) { void reg_exit_func(UNUSED_ARG(exit_func_t handler)) { } -void timeq_add(UNUSED_ARG(time_t when), UNUSED_ARG(timeq_func func), UNUSED_ARG(void *data)) { +void timeq_add(UNUSED_ARG(unsigned long when), UNUSED_ARG(timeq_func func), UNUSED_ARG(void *data)) { } -void timeq_del(UNUSED_ARG(time_t when), UNUSED_ARG(timeq_func func), UNUSED_ARG(void *data), UNUSED_ARG(int mask)) { +void timeq_del(UNUSED_ARG(unsigned long when), UNUSED_ARG(timeq_func func), UNUSED_ARG(void *data), UNUSED_ARG(int mask)) { } int send_message(UNUSED_ARG(struct userNode *dest), UNUSED_ARG(struct userNode *src), UNUSED_ARG(const char *message), ...) { @@ -58,13 +58,13 @@ int check_record(const char *key, void *data, UNUSED_ARG(void *extra)) struct record_data *rd = data; switch (rd->type) { case RECDB_INVALID: - fprintf(stdout, "Invalid database record type for key %s\n", key); - return 1; + fprintf(stdout, "Invalid database record type for key %s\n", key); + return 1; case RECDB_QSTRING: case RECDB_STRING_LIST: - return 0; + return 0; case RECDB_OBJECT: - return dict_foreach(rd->d.object, check_record, NULL) ? 1 : 0; + return dict_foreach(rd->d.object, check_record, NULL) ? 1 : 0; } return 0; }