diff options
author | Nick Mathewson <nickm@torproject.org> | 2007-01-30 22:19:41 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2007-01-30 22:19:41 +0000 |
commit | 76f896e7145ac85b354ad603794f569b20ca85c8 (patch) | |
tree | a3da57ca81cfda646587f3e62c18e63913d7d585 /src/or/directory.c | |
parent | 1894e7ea01154d91c3842926a71ae32843264a24 (diff) | |
download | tor-76f896e7145ac85b354ad603794f569b20ca85c8.tar.gz tor-76f896e7145ac85b354ad603794f569b20ca85c8.zip |
r11607@catbus: nickm | 2007-01-30 17:19:27 -0500
Audit non-const char arguments; make a lot more of them const.
svn:r9466
Diffstat (limited to 'src/or/directory.c')
-rw-r--r-- | src/or/directory.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/or/directory.c b/src/or/directory.c index e5b136d28e..87977a9c0d 100644 --- a/src/or/directory.c +++ b/src/or/directory.c @@ -633,7 +633,7 @@ directory_send_command(dir_connection_t *conn, * Otherwise, return -1. */ static int -parse_http_url(char *headers, char **url) +parse_http_url(const char *headers, char **url) { char *s, *start, *tmp; @@ -1516,8 +1516,8 @@ directory_dump_request_log(void) * conn-\>outbuf. If the request is unrecognized, send a 400. * Always return 0. */ static int -directory_handle_command_get(dir_connection_t *conn, char *headers, - char *body, size_t body_len) +directory_handle_command_get(dir_connection_t *conn, const char *headers, + const char *body, size_t body_len) { size_t dlen; const char *cp; @@ -1811,8 +1811,8 @@ directory_handle_command_get(dir_connection_t *conn, char *headers, * response into conn-\>outbuf. If the request is unrecognized, send a * 400. Always return 0. */ static int -directory_handle_command_post(dir_connection_t *conn, char *headers, - char *body, size_t body_len) +directory_handle_command_post(dir_connection_t *conn, const char *headers, + const char *body, size_t body_len) { char *url = NULL; or_options_t *options = get_options(); |