diff options
author | Mattias Andrée <maandree@operamail.com> | 2015-08-19 16:13:03 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2015-08-19 16:13:03 +0200 |
commit | c6722e65c5756e7b04a21a4556196bb2e2db591a (patch) | |
tree | 146b37004e1d61537eeed971a1236bdade0de01f | |
parent | info: why dither (diff) | |
download | mds-c6722e65c5756e7b04a21a4556196bb2e2db591a.tar.gz mds-c6722e65c5756e7b04a21a4556196bb2e2db591a.tar.bz2 mds-c6722e65c5756e7b04a21a4556196bb2e2db591a.tar.xz |
m
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r-- | src/mds-colour.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mds-colour.c b/src/mds-colour.c index b49348b..bdc7aad 100644 --- a/src/mds-colour.c +++ b/src/mds-colour.c @@ -356,9 +356,9 @@ int handle_list_colours(const char* recv_client_id, const char* recv_message_id, if (strequals(recv_client_id, "0:0")) return eprint("got a query from an anonymous client, ignoring."), 0; - if (recv_include_values == NULL) remove_include_values = 0; - else if (strequals(recv_include_values, "yes")) remove_include_values = 1; - else if (strequals(recv_include_values, "no")) remove_include_values = 0; + if (recv_include_values == NULL) include_values = 0; + else if (strequals(recv_include_values, "yes")) include_values = 1; + else if (strequals(recv_include_values, "no")) include_values = 0; else ; /* TODO send EPROTO*/ @@ -431,7 +431,7 @@ int handle_set_colour(const char* recv_name, const char* recv_remove, const char return eprint("got an invalid value on the Bytes-header, ignoring."), 0; if (bytes < 8) - limit = (((uint64)1) << (bytes * 8)) - 1; + limit = (((uint64_t)1) << (bytes * 8)) - 1; if (strict_atou64(recv_red, &red, 0, limit)) return eprint("got an invalid value on the Red-header, ignoring."), 0; |