ping6: Use errx to avoid appending a specious error message

Reviewed by:	asomers, markj
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D38418
This commit is contained in:
Jose Luis Duran 2023-03-14 11:08:54 -04:00 committed by Mark Johnston
parent e9ea690ae8
commit f32d6f745d
2 changed files with 1 additions and 2 deletions

View file

@ -580,7 +580,7 @@ ping6(int argc, char *argv[])
case 'W':
t = strtod(optarg, &e);
if (*e || e == optarg || t > (double)INT_MAX)
err(EX_USAGE, "invalid timing interval: `%s'",
errx(EX_USAGE, "invalid timing interval: `%s'",
optarg);
options |= F_WAITTIME;
waittime = (int)t;

View file

@ -736,7 +736,6 @@ def test_ping(self, expected):
"stdout": "",
"stderr": "ping: invalid timing interval: `x'\n",
},
marks=pytest.mark.skip("XXX currently failing"),
id="_Wx_localhost",
),
]