diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2004-04-12 22:15:49 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2004-04-12 22:15:49 +0000 |
commit | 9b37e71456a95d39cd56f011bfcccca72be9e661 (patch) | |
tree | 9f1430c4ac3cf13a171d091ef920f0e450647835 /usr.sbin | |
parent | 92a7275134edc5eabf4546fde12572e876008edb (diff) |
spacing
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/dhcrelay/dhcrelay.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/usr.sbin/dhcrelay/dhcrelay.c b/usr.sbin/dhcrelay/dhcrelay.c index fc297f60830..620899c607e 100644 --- a/usr.sbin/dhcrelay/dhcrelay.c +++ b/usr.sbin/dhcrelay/dhcrelay.c @@ -150,7 +150,7 @@ int main (argc, argv) endservent (); } remote_port = htons (ntohs (local_port) + 1); - + /* We need at least one server. */ if (!sp) { usage(); @@ -286,7 +286,6 @@ void relay (ip, packet, length, from_port, from, hfrom) inet_ntoa (sp -> to.sin_addr)); } } - } void @@ -346,12 +345,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; |