diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2024-11-21 13:12:36 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2024-11-21 13:12:36 +0000 |
commit | 3d390a8bbbfa60898c28bb458da47b91b54287a8 (patch) | |
tree | 60cc4955c806aaac6a075361457f0319a9e70a26 /regress | |
parent | f6c88a9535ada120880c3cc431d0bdf48df5be3f (diff) |
Convert msgbuf_write() callers to the new return logic.
OK tb@
Diffstat (limited to 'regress')
-rw-r--r-- | regress/usr.sbin/rpki-client/test-http.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/regress/usr.sbin/rpki-client/test-http.c b/regress/usr.sbin/rpki-client/test-http.c index 830bb9ca6f5..b28cc720c44 100644 --- a/regress/usr.sbin/rpki-client/test-http.c +++ b/regress/usr.sbin/rpki-client/test-http.c @@ -149,12 +149,8 @@ main(int argc, char **argv) err(1, "open %s", file); http_request(req++, uri, mod, outfd); - switch (msgbuf_write(&httpq)) { - case 0: - errx(1, "write: connection closed"); - case -1: + if (msgbuf_write(&httpq) == -1) err(1, "write"); - } error = http_response(http); return error; } |