summaryrefslogtreecommitdiffstats
path: root/usr.bin/tcpbench/tcpbench.c
diff options
context:
space:
mode:
authorbenno <benno@openbsd.org>2018-05-10 13:53:05 +0000
committerbenno <benno@openbsd.org>2018-05-10 13:53:05 +0000
commit23ac3066ecbf8e2aea458c0ad38b4b5ea9805259 (patch)
tree1412ad7f73090e8bc6ca51ba84e98b404a0c1797 /usr.bin/tcpbench/tcpbench.c
parentFix typo in RFC number. (diff)
downloadwireguard-openbsd-23ac3066ecbf8e2aea458c0ad38b4b5ea9805259.tar.xz
wireguard-openbsd-23ac3066ecbf8e2aea458c0ad38b4b5ea9805259.zip
print strdup error with err(). From Nan Xiao nan AT chinadtrace DOT
org, Thanks.
Diffstat (limited to 'usr.bin/tcpbench/tcpbench.c')
-rw-r--r--usr.bin/tcpbench/tcpbench.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tcpbench/tcpbench.c b/usr.bin/tcpbench/tcpbench.c
index a409a275311..f5b11ccb810 100644
--- a/usr.bin/tcpbench/tcpbench.c
+++ b/usr.bin/tcpbench/tcpbench.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tcpbench.c,v 1.52 2016/09/19 18:58:39 bluhm Exp $ */
+/* $OpenBSD: tcpbench.c,v 1.53 2018/05/10 13:53:05 benno Exp $ */
/*
* Copyright (c) 2008 Damien Miller <djm@mindrot.org>
@@ -1041,7 +1041,7 @@ main(int argc, char **argv)
exit(0);
case 'k':
if ((tmp = strdup(optarg)) == NULL)
- errx(1, "strdup");
+ err(1, "strdup");
ptb->kvars = check_prepare_kvars(tmp);
free(tmp);
break;