From: Mark Andrews Date: Tue, 14 Sep 2010 04:01:33 +0000 (+0000) Subject: cast time_t to unsigned long and use %lu instead of %u X-Git-Tag: v4_3_0a1~255 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a96cdbe1f80bb9a5493eb2c2d40da79cfe74f13b;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 4c8ee59d6..1878b775b 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 {