From: Mark Andrews Date: Tue, 14 Sep 2010 04:02:41 +0000 (+0000) Subject: cast time_t to unsigned long and use %lu instead of %u X-Git-Tag: v4_2_1b1~37 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bce65e855bf7f40886765e0fedeb6db578ec1047;p=thirdparty%2Fdhcp.git cast time_t to unsigned long and use %lu instead of %u --- diff --git a/common/print.c b/common/print.c index c985a947d..005b76851 100644 --- a/common/print.c +++ b/common/print.c @@ -1492,8 +1492,8 @@ print_time(TIME t) if ((strftime(buf1, sizeof(buf1), "# %a %b %d %H:%M:%S %Y", localtime(&t)) == 0) || - (snprintf(buf, sizeof(buf), "epoch %u; %s", - since_epoch, buf1) >= sizeof(buf))) + (snprintf(buf, sizeof(buf), "epoch %lu; %s", + (unsigned long)since_epoch, buf1) >= sizeof(buf))) return NULL; } else {