summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorflorian <florian@openbsd.org>2016-09-17 09:35:27 +0000
committerflorian <florian@openbsd.org>2016-09-17 09:35:27 +0000
commitf3b5c8e4853c7bba403c531ab90a8fef76de7da3 (patch)
treeca15c2c3de86381049cab1997ec60db792c560e4
parentmalloc sets errno; use err not errx (diff)
downloadwireguard-openbsd-f3b5c8e4853c7bba403c531ab90a8fef76de7da3.tar.xz
wireguard-openbsd-f3b5c8e4853c7bba403c531ab90a8fef76de7da3.zip
Just use AF_INET like everywhere else.
-rw-r--r--sbin/ping/ping.c4
-rw-r--r--sbin/ping6/ping6.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/sbin/ping/ping.c b/sbin/ping/ping.c
index 11435e2f65e..a80818b5c7b 100644
--- a/sbin/ping/ping.c
+++ b/sbin/ping/ping.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ping.c,v 1.201 2016/09/17 09:34:57 florian Exp $ */
+/* $OpenBSD: ping.c,v 1.202 2016/09/17 09:35:27 florian Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -397,7 +397,7 @@ main(int argc, char *argv[])
target = *argv;
memset(&hints, 0, sizeof(hints));
- hints.ai_family = PF_INET;
+ hints.ai_family = AF_INET;
hints.ai_socktype = SOCK_RAW;
hints.ai_protocol = 0;
hints.ai_flags = AI_CANONNAME;
diff --git a/sbin/ping6/ping6.c b/sbin/ping6/ping6.c
index 5d61b596477..0e5980c259a 100644
--- a/sbin/ping6/ping6.c
+++ b/sbin/ping6/ping6.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ping6.c,v 1.217 2016/09/17 09:34:57 florian Exp $ */
+/* $OpenBSD: ping6.c,v 1.218 2016/09/17 09:35:27 florian Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -378,7 +378,7 @@ main(int argc, char *argv[])
target = *argv;
memset(&hints, 0, sizeof(hints));
- hints.ai_family = PF_INET6;
+ hints.ai_family = AF_INET6;
hints.ai_socktype = SOCK_RAW;
hints.ai_protocol = 0;
hints.ai_flags = AI_CANONNAME;