From 1cdd76af31031c25abcb90cf323cbd96324174cc Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Wed, 5 Aug 2009 00:09:16 +0200 Subject: http_message_add_headers(): make parameter headers const. Michael --- src/http-message.c | 3 ++- src/http-message.h | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/http-message.c b/src/http-message.c index d6ab81e..70357b8 100644 --- a/src/http-message.c +++ b/src/http-message.c @@ -186,7 +186,8 @@ http_message_set_body (http_message_t msg, const char *body, size_t len) * Add headers to the structure. */ int -http_message_add_headers (http_message_t msg, char **headers, int num_headers) +http_message_add_headers (http_message_t msg, const char **headers, + int num_headers) { char **new_headers; int i; diff --git a/src/http-message.h b/src/http-message.h index d36146f..094945b 100644 --- a/src/http-message.h +++ b/src/http-message.h @@ -88,6 +88,6 @@ extern int http_message_set_response (http_message_t msg, * sent. */ extern int http_message_add_headers (http_message_t msg, - char **headers, int num_headers); + const char **headers, int num_headers); #endif /* _TINYPROXY_HTTP_MESSAGE_H_ */ -- cgit v1.2.3