diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2021-10-23 14:30:00 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2021-10-23 14:30:00 +0000 |
commit | d5da907302c90d5e4e7ce71ef84845c4e8176f78 (patch) | |
tree | 40d4b5999db92c02cd37c247e2d8d75b849efd9a /regress | |
parent | f2b4163eb38a2025d8a4612e8c712f304a6481f9 (diff) |
Unbreak test-http after the last io.c changes
Report from anton@
Diffstat (limited to 'regress')
-rw-r--r-- | regress/usr.sbin/rpki-client/test-http.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/regress/usr.sbin/rpki-client/test-http.c b/regress/usr.sbin/rpki-client/test-http.c index 9f87d9ebe66..fa009cc35c3 100644 --- a/regress/usr.sbin/rpki-client/test-http.c +++ b/regress/usr.sbin/rpki-client/test-http.c @@ -30,14 +30,13 @@ http_request(size_t id, const char *uri, const char *last_mod, int fd) { struct ibuf *b; - if ((b = ibuf_dynamic(256, UINT_MAX)) == NULL) - err(1, NULL); + b = io_buf_new(); io_simple_buffer(b, &id, sizeof(id)); io_str_buffer(b, uri); io_str_buffer(b, last_mod); /* pass file as fd */ b->fd = fd; - ibuf_close(&httpq, b); + io_buf_close(&httpq, b); } static const char * @@ -58,10 +57,11 @@ http_result(enum http_result res) static int http_response(int fd) { - size_t id; + size_t id, sz; enum http_result res; char *lastmod; + io_simple_read(fd, &sz, sizeof(sz)); io_simple_read(fd, &id, sizeof(id)); io_simple_read(fd, &res, sizeof(res)); io_str_read(fd, &lastmod); |