summaryrefslogtreecommitdiffstats
path: root/usr.sbin/dhcpd/print.c
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2004-04-18 00:43:27 +0000
committerderaadt <deraadt@openbsd.org>2004-04-18 00:43:27 +0000
commit8e1c2028c5dceb83d3e368cc82c07a5ac32d88dc (patch)
tree7f6277311fb6beca9324129a5ae8feb046b89dbc /usr.sbin/dhcpd/print.c
parentdhcpd may be invoked without any interface given (diff)
downloadwireguard-openbsd-8e1c2028c5dceb83d3e368cc82c07a5ac32d88dc.tar.xz
wireguard-openbsd-8e1c2028c5dceb83d3e368cc82c07a5ac32d88dc.zip
various knf; henning ok
Diffstat (limited to 'usr.sbin/dhcpd/print.c')
-rw-r--r--usr.sbin/dhcpd/print.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/usr.sbin/dhcpd/print.c b/usr.sbin/dhcpd/print.c
index 226a59ac91e..3223a08b2e8 100644
--- a/usr.sbin/dhcpd/print.c
+++ b/usr.sbin/dhcpd/print.c
@@ -1,4 +1,4 @@
-/* $Id: print.c,v 1.4 2004/04/16 04:30:09 deraadt Exp $ */
+/* $Id: print.c,v 1.5 2004/04/18 00:43:27 deraadt Exp $ */
/* Turn data structures into printable text. */
@@ -73,7 +73,7 @@ bad:
}
-void
+void
print_lease(struct lease *lease)
{
struct tm *t;
@@ -99,7 +99,7 @@ print_lease(struct lease *lease)
debug(" host %s ", lease->host ? lease->host->name : "<none>");
}
-void
+void
dump_packet(struct packet *tp)
{
struct dhcp_packet *tdp = tp->raw;
@@ -114,7 +114,7 @@ dump_packet(struct packet *tp)
debug("siaddr = %s", inet_ntoa(tdp->siaddr));
debug("giaddr = %s", inet_ntoa(tdp->giaddr));
debug("chaddr = %02x:%02x:%02x:%02x:%02x:%02x",
- ((unsigned char *)(tdp->chaddr))[0],
+ ((unsigned char *)(tdp->chaddr))[0],
((unsigned char *)(tdp->chaddr))[1],
((unsigned char *)(tdp->chaddr))[2],
((unsigned char *)(tdp->chaddr))[3],
@@ -135,7 +135,7 @@ dump_packet(struct packet *tp)
debug("%s", "");
}
-void
+void
dump_raw(unsigned char *buf, int len)
{
char lbuf[80];
@@ -146,7 +146,7 @@ dump_raw(unsigned char *buf, int len)
for (i = 0; i < len; i++) {
if ((i & 15) == 0) {
if (lbix)
- note(lbuf);
+ note("%s", lbuf);
j = snprintf(lbuf, llen, "%03x:", i);
if (j >= llen)
return;
@@ -162,10 +162,10 @@ dump_raw(unsigned char *buf, int len)
lbix += j;
llen -= j;
}
- note(lbuf);
+ note("%s", lbuf);
}
-void
+void
hash_dump(struct hash_table *table)
{
struct hash_bucket *bp;
@@ -182,7 +182,7 @@ hash_dump(struct hash_table *table)
if (bp->len)
dump_raw(bp->name, bp->len);
else
- note((char *) bp->name);
+ note("%s", (char *)bp->name);
}
}
}