summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkrw <krw@openbsd.org>2014-01-19 10:06:09 +0000
committerkrw <krw@openbsd.org>2014-01-19 10:06:09 +0000
commit3117a1f692854b685f10c5ef0acaf69bea8675e8 (patch)
treed8969d00cae506156283ce41b95330668778bf01
parentmsleep.9 is relevant to my interests. (diff)
downloadwireguard-openbsd-3117a1f692854b685f10c5ef0acaf69bea8675e8.tar.xz
wireguard-openbsd-3117a1f692854b685f10c5ef0acaf69bea8675e8.zip
Nuke unused functions putLong(), putUShort(), putShort().
-rw-r--r--sbin/dhclient/convert.c26
-rw-r--r--sbin/dhclient/dhcpd.h5
2 files changed, 2 insertions, 29 deletions
diff --git a/sbin/dhclient/convert.c b/sbin/dhclient/convert.c
index 0626dc4b3a8..c49ad0f54f4 100644
--- a/sbin/dhclient/convert.c
+++ b/sbin/dhclient/convert.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: convert.c,v 1.5 2004/02/07 11:35:59 henning Exp $ */
+/* $OpenBSD: convert.c,v 1.6 2014/01/19 10:06:09 krw Exp $ */
/*
* Safe copying of option values into and out of the option buffer,
@@ -88,27 +88,3 @@ putULong(unsigned char *obuf, u_int32_t val)
memcpy(obuf, &tmp, sizeof(tmp));
}
-
-void
-putLong(unsigned char *obuf, int32_t val)
-{
- int32_t tmp = htonl(val);
-
- memcpy(obuf, &tmp, sizeof(tmp));
-}
-
-void
-putUShort(unsigned char *obuf, unsigned int val)
-{
- u_int16_t tmp = htons(val);
-
- memcpy(obuf, &tmp, sizeof(tmp));
-}
-
-void
-putShort(unsigned char *obuf, int val)
-{
- int16_t tmp = htons(val);
-
- memcpy(obuf, &tmp, sizeof(tmp));
-}
diff --git a/sbin/dhclient/dhcpd.h b/sbin/dhclient/dhcpd.h
index 61459665e36..26b8c37c4ab 100644
--- a/sbin/dhclient/dhcpd.h
+++ b/sbin/dhclient/dhcpd.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: dhcpd.h,v 1.132 2014/01/19 08:25:54 krw Exp $ */
+/* $OpenBSD: dhcpd.h,v 1.133 2014/01/19 10:06:09 krw Exp $ */
/*
* Copyright (c) 2004 Henning Brauer <henning@openbsd.org>
@@ -267,9 +267,6 @@ int32_t getLong(unsigned char *);
u_int16_t getUShort(unsigned char *);
int16_t getShort(unsigned char *);
void putULong(unsigned char *, u_int32_t);
-void putLong(unsigned char *, int32_t);
-void putUShort(unsigned char *, unsigned int);
-void putShort(unsigned char *, int);
/* dhclient.c */
extern char *path_dhclient_conf;