diff options
author | 2017-07-04 15:43:38 +0000 | |
---|---|---|
committer | 2017-07-04 15:43:38 +0000 | |
commit | b7b6b8e466ca06ecd1e627a57ffe09b5ef285e40 (patch) | |
tree | 2866d8e161ae9931bcbec21b7e9144a205a47648 /sbin/ping/ping.c | |
parent | 1. mild deprecation notice (diff) | |
download | wireguard-openbsd-b7b6b8e466ca06ecd1e627a57ffe09b5ef285e40.tar.xz wireguard-openbsd-b7b6b8e466ca06ecd1e627a57ffe09b5ef285e40.zip |
replace perror(3) with err(3); from Klemens Nanni
Diffstat (limited to 'sbin/ping/ping.c')
-rw-r--r-- | sbin/ping/ping.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/sbin/ping/ping.c b/sbin/ping/ping.c index 8592d7d539f..0428dde6606 100644 --- a/sbin/ping/ping.c +++ b/sbin/ping/ping.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ping.c,v 1.218 2017/02/22 13:43:35 renato Exp $ */ +/* $OpenBSD: ping.c,v 1.219 2017/07/04 15:43:38 florian Exp $ */ /* * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. @@ -729,10 +729,8 @@ main(int argc, char *argv[]) rspace[IPOPT_OLEN] = sizeof(rspace)-1; rspace[IPOPT_OFFSET] = IPOPT_MINOFF; if (setsockopt(s, IPPROTO_IP, IP_OPTIONS, rspace, - sizeof(rspace)) < 0) { - perror("ping: record route"); - exit(1); - } + sizeof(rspace)) < 0) + err(1, "record route"); } if ((moptions & MULTICAST_NOLOOP) && |