From: Steven Barth Date: Thu, 3 Apr 2014 09:53:26 +0000 (+0200) Subject: Make clang happy X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=2441f9629ddae3656313565c4e48236661c130ff;p=oweals%2Fodhcpd.git Make clang happy --- diff --git a/src/dhcpv6-ia.c b/src/dhcpv6-ia.c index 4bfea18..767a546 100644 --- a/src/dhcpv6-ia.c +++ b/src/dhcpv6-ia.c @@ -279,7 +279,7 @@ void dhcpv6_write_statefile(void) md5_hash(c->hostname, strlen(c->hostname), &md5); } - l += snprintf(leasebuf + l, sizeof(leasebuf) - l, "%s/%hhu ", ipbuf, + l += snprintf(leasebuf + l, sizeof(leasebuf) - l, "%s/%d ", ipbuf, (c->managed_size) ? addrs[i].prefix : c->length); } leasebuf[l - 1] = '\n';