artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
675ea90
)
Print the strerror of the expected error. errno is not valid here since
author
claudio
<claudio@openbsd.org>
Sun, 10 Apr 2022 14:08:35 +0000
(14:08 +0000)
committer
claudio
<claudio@openbsd.org>
Sun, 10 Apr 2022 14:08:35 +0000
(14:08 +0000)
bind(2) succeeded.
regress/sys/netinet/in_pcbbind/runtest.c
patch
|
blob
|
history
diff --git
a/regress/sys/netinet/in_pcbbind/runtest.c
b/regress/sys/netinet/in_pcbbind/runtest.c
index
2842a2c
..
c971566
100644
(file)
--- a/
regress/sys/netinet/in_pcbbind/runtest.c
+++ b/
regress/sys/netinet/in_pcbbind/runtest.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: runtest.c,v 1.
6 2020/12/30 18:56:56 benn
o Exp $ */
+/* $OpenBSD: runtest.c,v 1.
7 2022/04/10 14:08:35 claudi
o Exp $ */
/*
* Copyright (c) 2015 Vincent Gross <vincent.gross@kilob.yt>
*
@@
-99,7
+99,7
@@
runtest(int *sockp, struct addrinfo *ai, int reuseaddr, int reuseport,
if (error == 0 && expected != 0) {
warnx("bind(%s,%s,%s) succeeded, expected : %s", ai->ai_canonname,
reuseaddr ? "REUSEADDR" : "", reuseport ? "REUSEPORT" : "",
- strerror(e
rrno
));
+ strerror(e
xpected
));
return (1);
}