From cf222ce79f9f09bdcdc7a60e87e9bc95f2943177 Mon Sep 17 00:00:00 2001 From: Kenneth R Westerback Date: Mon, 27 Oct 2014 17:01:29 +0000 Subject: Nuke getLong(), getShort(), getUShort(). Two line functions (memcpy(); ntoh[ls]()) obscure rather than simplify things. Especially when they are used only once. Just use the expansion. --- sbin/dhclient/dhcpd.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'sbin/dhclient/dhcpd.h') diff --git a/sbin/dhclient/dhcpd.h b/sbin/dhclient/dhcpd.h index 1d9e79471cd..77f6fa299a2 100644 --- a/sbin/dhclient/dhcpd.h +++ b/sbin/dhclient/dhcpd.h @@ -1,4 +1,4 @@ -/* $OpenBSD: dhcpd.h,v 1.139 2014/05/23 15:26:22 krw Exp $ */ +/* $OpenBSD: dhcpd.h,v 1.140 2014/10/27 17:01:28 krw Exp $ */ /* * Copyright (c) 2004 Henning Brauer @@ -267,9 +267,6 @@ extern const struct option dhcp_options[256]; /* convert.c */ u_int32_t getULong(unsigned char *); -int32_t getLong(unsigned char *); -u_int16_t getUShort(unsigned char *); -int16_t getShort(unsigned char *); void putULong(unsigned char *, u_int32_t); /* dhclient.c */ -- cgit v1.2.3