diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2004-04-14 04:34:20 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2004-04-14 04:34:20 +0000 |
commit | 0e6fba08aae49f759c57bdf166083f6fcb6173cd (patch) | |
tree | f8b78e4751e3475b7ec426f39c27dba339c8b41a /usr.sbin/dhcpd/print.c | |
parent | 7a18bc4c88c80a179a7fcf67d3aacbdab6783cd5 (diff) |
spaces
Diffstat (limited to 'usr.sbin/dhcpd/print.c')
-rw-r--r-- | usr.sbin/dhcpd/print.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/usr.sbin/dhcpd/print.c b/usr.sbin/dhcpd/print.c index 4a80656ab47..155d4c6a688 100644 --- a/usr.sbin/dhcpd/print.c +++ b/usr.sbin/dhcpd/print.c @@ -64,12 +64,12 @@ char *print_hw_addr (htype, hlen, data) s += strlen (s); slen -= (strlen(s) + 1); - *s++ = ':'; + *s++ = ':'; } *--s = 0; } return habuf; - bad: + bad: strlcpy (habuf, "<null>", sizeof habuf); return habuf; @@ -83,26 +83,26 @@ void print_lease (lease) debug (" Lease %s", piaddr (lease -> ip_addr)); - + t = gmtime (&lease -> starts); strftime (tbuf, sizeof tbuf, "%Y/%m/%d %H:%M:%S", t); debug (" start %s", tbuf); - + t = gmtime (&lease -> ends); strftime (tbuf, sizeof tbuf, "%Y/%m/%d %H:%M:%S", t); debug (" end %s", tbuf); - + t = gmtime (&lease -> timestamp); strftime (tbuf, sizeof tbuf, "%Y/%m/%d %H:%M:%S", t); debug (" stamp %s", tbuf); - + debug (" hardware addr = %s", print_hw_addr (lease -> hardware_addr.htype, lease -> hardware_addr.hlen, lease -> hardware_addr.haddr)); debug (" host %s ", lease -> host ? lease -> host -> name : "<none>"); -} +} void dump_packet (tp) struct packet *tp; @@ -162,7 +162,7 @@ void dump_raw (buf, len) return; lbix+=j; llen-=j; - } else if ((i & 7) == 0) { + } else if ((i & 7) == 0) { lbuf [lbix++] = ' '; len--; } |