diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-08-12 15:39:39 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-08-12 15:39:39 +0200 |
commit | 856c92de0cfccee39750fda1d04d410fdb06bbe2 (patch) | |
tree | 43b2ec983835e15d6c785687fcbd75c27a45d988 /src/mds-server/receiving.c | |
parent | missed explicit cast (diff) | |
download | mds-856c92de0cfccee39750fda1d04d410fdb06bbe2.tar.gz mds-856c92de0cfccee39750fda1d04d410fdb06bbe2.tar.bz2 mds-856c92de0cfccee39750fda1d04d410fdb06bbe2.tar.xz |
macros for ato* with cast
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r-- | src/mds-server/receiving.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mds-server/receiving.c b/src/mds-server/receiving.c index 127540b..15ebb4d 100644 --- a/src/mds-server/receiving.c +++ b/src/mds-server/receiving.c @@ -263,8 +263,8 @@ int message_received(client_t* client) else if (strequals(h, "Modifying: yes")) modifying = 1; else if (strequals(h, "Stop: yes")) stop = 1; else if (startswith(h, "Message ID: ")) message_id = strstr(h, ": ") + 2; - else if (startswith(h, "Priority: ")) priority = (int64_t)atoll(strstr(h, ": ") + 2); - else if (startswith(h, "Modify ID: ")) modify_id = (uint64_t)atoll(strstr(h, ": ") + 2); + else if (startswith(h, "Priority: ")) priority = ato64(strstr(h, ": ") + 2); + else if (startswith(h, "Modify ID: ")) modify_id = atou64(strstr(h, ": ") + 2); } |