summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Andrews <marka@isc.org>2010-09-14 04:03:25 +0000
committerMark Andrews <marka@isc.org>2010-09-14 04:03:25 +0000
commit85c4fbe7ee5e2b018e1e41b41eff1361bf2b536c (patch)
tree2405099bc790de78cf9f8527290127536bc4a572
parent4b0135fed295b69ed7d102b5876fb4465a1bf2a4 (diff)
downloadisc-dhcp-85c4fbe7ee5e2b018e1e41b41eff1361bf2b536c.tar.gz
cast time_t to unsigned long and use %lu instead of %u
-rw-r--r--common/print.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/print.c b/common/print.c
index 72c002e6..51b8bc69 100644
--- a/common/print.c
+++ b/common/print.c
@@ -1558,8 +1558,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 {