From 3d390a8bbbfa60898c28bb458da47b91b54287a8 Mon Sep 17 00:00:00 2001 From: Claudio Jeker Date: Thu, 21 Nov 2024 13:12:36 +0000 Subject: Convert msgbuf_write() callers to the new return logic. OK tb@ --- regress/usr.sbin/rpki-client/test-http.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'regress') 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; } -- cgit v1.2.3