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/control.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/control.c')
-rw-r--r-- | src/or/control.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/or/control.c b/src/or/control.c index 37cef7a29c..be404bfddd 100644 --- a/src/or/control.c +++ b/src/or/control.c @@ -779,7 +779,8 @@ get_stream(const char *id) } /** Helper for setconf and resetconf. Acts like setconf, except - * it passes <b>use_defaults</b> on to options_trial_assign(). + * it passes <b>use_defaults</b> on to options_trial_assign(). Modifies the + * contents of body. */ static int control_setconf_helper(control_connection_t *conn, uint32_t len, char *body, @@ -885,7 +886,8 @@ control_setconf_helper(control_connection_t *conn, uint32_t len, char *body, } /** Called when we receive a SETCONF message: parse the body and try - * to update our configuration. Reply with a DONE or ERROR message. */ + * to update our configuration. Reply with a DONE or ERROR message. + * Modifies the contents of body.*/ static int handle_control_setconf(control_connection_t *conn, uint32_t len, char *body) { @@ -893,7 +895,8 @@ handle_control_setconf(control_connection_t *conn, uint32_t len, char *body) } /** Called when we receive a RESETCONF message: parse the body and try - * to update our configuration. Reply with a DONE or ERROR message. */ + * to update our configuration. Reply with a DONE or ERROR message. + * Modifies the contents of body. */ static int handle_control_resetconf(control_connection_t *conn, uint32_t len, char *body) { @@ -2583,7 +2586,7 @@ handle_control_usefeature(control_connection_t *conn, */ static int handle_control_fragments(control_connection_t *conn, uint16_t command_type, - uint32_t body_len, char *body) + uint32_t body_len, const char *body) { if (command_type == CONTROL0_CMD_FRAGMENTHEADER) { if (conn->incoming_cmd) { |