http_message_add_headers(): make parameter headers const.

Michael
This commit is contained in:
Michael Adam 2009-08-05 00:09:16 +02:00
parent 867b4c9813
commit 1cdd76af31
2 changed files with 3 additions and 2 deletions

View File

@ -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;

View File

@ -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_ */