aboutsummaryrefslogtreecommitdiff
path: root/src/or/directory.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/or/directory.c')
-rw-r--r--src/or/directory.c10
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();