diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2004-05-04 21:25:28 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2004-05-04 21:25:28 +0000 |
commit | 5a6ba6e15fe81b53aabd942f225da0cd247f721f (patch) | |
tree | 481b79f1c3ca87e4790cb930789b9935a4d35be1 /usr.sbin/dhcpd/convert.c | |
parent | 5de28bae13cc7585dcea2ebe433e6d6a1b08c7b9 (diff) |
remove DEBUG_PACKET stuff; henning ok
Diffstat (limited to 'usr.sbin/dhcpd/convert.c')
-rw-r--r-- | usr.sbin/dhcpd/convert.c | 24 |
1 files changed, 1 insertions, 23 deletions
diff --git a/usr.sbin/dhcpd/convert.c b/usr.sbin/dhcpd/convert.c index 4f1e6fc93e5..e2750f67da9 100644 --- a/usr.sbin/dhcpd/convert.c +++ b/usr.sbin/dhcpd/convert.c @@ -1,4 +1,4 @@ -/* $OpenBSD: convert.c,v 1.3 2004/05/04 20:28:40 deraadt Exp $ */ +/* $OpenBSD: convert.c,v 1.4 2004/05/04 21:25:27 deraadt Exp $ */ /* * Safe copying of option values into and out of the option buffer, @@ -54,17 +54,6 @@ getULong(unsigned char *buf) return (ntohl(ibuf)); } -#ifdef DEBUG_PACKET -int32_t -getLong(unsigned char *(buf)) -{ - int32_t ibuf; - - memcpy(&ibuf, buf, sizeof(ibuf)); - return (ntohl(ibuf)); -} -#endif - u_int16_t getUShort(unsigned char *buf) { @@ -74,17 +63,6 @@ getUShort(unsigned char *buf) return (ntohs(ibuf)); } -#ifdef DEBUG_PACKET -int16_t -getShort(unsigned char *buf) -{ - int16_t ibuf; - - memcpy(&ibuf, buf, sizeof(ibuf)); - return (ntohs(ibuf)); -} -#endif - void putULong(unsigned char *obuf, u_int32_t val) { |