aboutsummaryrefslogtreecommitdiff
path: root/sbin/ifconfig/af_inet.c
diff options
context:
space:
mode:
authorEnji Cooper <ngie@FreeBSD.org>2015-05-11 04:54:56 +0000
committerEnji Cooper <ngie@FreeBSD.org>2015-05-11 04:54:56 +0000
commit4f34db2d704b5c148523c5bbd0bdda59d3b97774 (patch)
tree5ed69969ad3b54e64480020acbfe1025690fcbf3 /sbin/ifconfig/af_inet.c
parent1d79f30229e033efe317adb6319901ddc95ede9d (diff)
downloadsrc-4f34db2d704b5c148523c5bbd0bdda59d3b97774.tar.gz
src-4f34db2d704b5c148523c5bbd0bdda59d3b97774.zip
Notes
Diffstat (limited to 'sbin/ifconfig/af_inet.c')
-rw-r--r--sbin/ifconfig/af_inet.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sbin/ifconfig/af_inet.c b/sbin/ifconfig/af_inet.c
index 3c3a75742e10..eff1ce5958b9 100644
--- a/sbin/ifconfig/af_inet.c
+++ b/sbin/ifconfig/af_inet.c
@@ -32,7 +32,7 @@ static const char rcsid[] =
"$FreeBSD$";
#endif /* not lint */
-#include <sys/types.h>
+#include <sys/param.h>
#include <sys/ioctl.h>
#include <sys/socket.h>
#include <net/if.h>
@@ -100,7 +100,6 @@ static struct sockaddr_in *sintab[] = {
static void
in_getaddr(const char *s, int which)
{
-#define MIN(a,b) ((a)<(b)?(a):(b))
struct sockaddr_in *sin = sintab[which];
struct hostent *hp;
struct netent *np;
@@ -141,7 +140,6 @@ in_getaddr(const char *s, int which)
sin->sin_addr = inet_makeaddr(np->n_net, INADDR_ANY);
else
errx(1, "%s: bad value", s);
-#undef MIN
}
static void