Make clang happy
authorSteven Barth <steven@midlink.org>
Thu, 3 Apr 2014 09:53:26 +0000 (11:53 +0200)
committerSteven Barth <steven@midlink.org>
Thu, 3 Apr 2014 09:53:26 +0000 (11:53 +0200)
src/dhcpv6-ia.c

index 4bfea18ec3b19e220e1a4a2b7794bda2c1d48ca0..767a546fbe5db0ff776c41cc7c514b1a2479e61c 100644 (file)
@@ -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';