From 9dd2289f9004a984b4a11213c1fd8fa1d11e075a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Wed, 20 Apr 2005 10:38:37 +0000 Subject: [PATCH] cast ssize_t to unsigned long, fix printf format git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14861 ec53bebd-3082-4978-b11e-865c3cabbd6b --- appl/test/http_client.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/appl/test/http_client.c b/appl/test/http_client.c index d4e2db864..8b0a06af7 100644 --- a/appl/test/http_client.c +++ b/appl/test/http_client.c @@ -213,7 +213,7 @@ http_query(const char *host, const char *page, if (ret == 0) break; else if (ret < 0) - err (1, "read: %d", ret); + err (1, "read: %lu", (unsigned long)ret); in_buf[ret + in_len] = '\0'; @@ -270,7 +270,7 @@ http_query(const char *host, const char *page, printf("response: %s\n", req->response); for (i = 0; i < req->num_headers; i++) printf("header[%d] %s\n", i, req->headers[i]); - printf("body: %*.s\n", (int)req->body_size, (char *)req->body); + printf("body: %.*s\n", (int)req->body_size, (char *)req->body); } close(s);