X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fcitserver.c;h=562cd8905f4301417dcb32af5b8202989a3a2062;hb=9f6be9e8aa049ed823497ac1339ddfbd404effd7;hp=3d83bfe8c4544254731704879c318f865137aab2;hpb=1f79d7b9a6f60f331ea0c90e9eb4ef7c40ee7aa5;p=citadel.git diff --git a/citadel/citserver.c b/citadel/citserver.c index 3d83bfe8c..562cd8905 100644 --- a/citadel/citserver.c +++ b/citadel/citserver.c @@ -353,7 +353,7 @@ void cmd_time(void) tv = time(NULL); - cprintf("%d %ld\n", OK, tv); + cprintf("%d %ld\n", OK, (long)tv); } /* @@ -785,7 +785,7 @@ void generate_nonce(struct CitContext *con) { gettimeofday(&tv, NULL); memset(con->cs_nonce, NONCE_SIZE, 0); snprintf(con->cs_nonce, NONCE_SIZE, "<%d%ld@%s>", - rand(), tv.tv_usec, config.c_fqdn); + rand(), (long)tv.tv_usec, config.c_fqdn); }