diff options
author | Michael Adam <obnox@samba.org> | 2009-08-07 09:24:32 +0200 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2009-08-07 09:24:32 +0200 |
commit | 1052502b63841dc366591ba2acb845ab85ce7304 (patch) | |
tree | 70767b531218a00cee175f1b691087a12e095682 /src/http-message.c | |
parent | f99edadc92900ef2262e38820e66a2061331a3aa (diff) | |
download | tinyproxy-1052502b63841dc366591ba2acb845ab85ce7304.tar.gz tinyproxy-1052502b63841dc366591ba2acb845ab85ce7304.zip |
http_message_add_headers: make argument num_headers unsigned
and remove signed vs. unsigned comparison warnings.
Michael
Diffstat (limited to '')
-rw-r--r-- | src/http-message.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/http-message.c b/src/http-message.c index a184fa1..ad14ce7 100644 --- a/src/http-message.c +++ b/src/http-message.c @@ -188,18 +188,16 @@ http_message_set_body (http_message_t msg, const char *body, size_t len) */ int http_message_add_headers (http_message_t msg, const char **headers, - int num_headers) + unsigned int num_headers) { const char **new_headers; - int i; + unsigned int i; /* Check for valid arguments */ if (msg == NULL) return -EFAULT; if (headers == NULL) return -EINVAL; - if (num_headers < 1) - return -EINVAL; /* * If the number of headers to add is greater than the space |