aboutsummaryrefslogtreecommitdiff
path: root/src/or/control.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/or/control.c')
-rw-r--r--src/or/control.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/or/control.c b/src/or/control.c
index 6795251cda..abe1759ae4 100644
--- a/src/or/control.c
+++ b/src/or/control.c
@@ -790,6 +790,7 @@ handle_control_getconf(connection_t *conn, uint32_t body_len, const char *body)
int v0 = STATE_IS_V0(conn->state);
questions = smartlist_create();
+ (void) body_len; /* body is null-terminated; so we can ignore len. */
if (v0) {
smartlist_split_string(questions, body, "\n",
SPLIT_SKIP_SPACE|SPLIT_IGNORE_BLANK, 0);
@@ -1077,6 +1078,8 @@ static int
handle_control_saveconf(connection_t *conn, uint32_t len,
const char *body)
{
+ (void) len;
+ (void) body;
if (options_save_current()<0) {
if (STATE_IS_V0(conn->state))
send_control0_error(conn, ERR_INTERNAL,
@@ -1157,6 +1160,8 @@ handle_control_mapaddress(connection_t *conn, uint32_t len, const char *body)
char *r;
size_t sz;
int v0 = STATE_IS_V0(conn->state);
+ (void) len; /* body is null-terminated, so it's safe to ignore the length. */
+
lines = smartlist_create();
elts = smartlist_create();
reply = smartlist_create();
@@ -1542,6 +1547,7 @@ handle_control_getinfo(connection_t *conn, uint32_t len, const char *body)
char *msg = NULL, *ans = NULL;
size_t msg_len;
int v0 = STATE_IS_V0(conn->state);
+ (void) len; /* body is null-terminated, so it's safe to ignore the length. */
questions = smartlist_create();
if (v0)
@@ -1803,6 +1809,7 @@ handle_control_setpurpose(connection_t *conn, int for_circuits,
routerinfo_t *ri = NULL;
uint8_t new_purpose;
smartlist_t *args = smartlist_create();
+ (void) len; /* body is null-terminated, so it's safe to ignore the length. */
smartlist_split_string(args, body, " ",
SPLIT_SKIP_SPACE|SPLIT_IGNORE_BLANK, 0);
if (smartlist_len(args)<2) {
@@ -2779,6 +2786,7 @@ void
control_event_logmsg(int severity, unsigned int domain, const char *msg)
{
int oldlog, event;
+ (void) domain;
if (disable_log_messages)
return;