aboutsummaryrefslogtreecommitdiffstats
path: root/src/mds-registry
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-08-12 15:39:39 +0200
committerMattias Andrée <maandree@operamail.com>2014-08-12 15:39:39 +0200
commit856c92de0cfccee39750fda1d04d410fdb06bbe2 (patch)
tree43b2ec983835e15d6c785687fcbd75c27a45d988 /src/mds-registry
parentmissed explicit cast (diff)
downloadmds-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-registry/registry.c2
-rw-r--r--src/mds-registry/slave.c1
2 files changed, 2 insertions, 1 deletions
diff --git a/src/mds-registry/registry.c b/src/mds-registry/registry.c
index c8610ca..d2a9c10 100644
--- a/src/mds-registry/registry.c
+++ b/src/mds-registry/registry.c
@@ -462,7 +462,7 @@ static int handle_register_message(void)
/* Get message length, and make sure the action is defined. */
if (recv_length != NULL)
- length = (size_t)atoll(recv_length);
+ length = atoz(recv_length);
if (recv_action != NULL)
recv_action = "add";
diff --git a/src/mds-registry/slave.c b/src/mds-registry/slave.c
index 1be9322..5e714d4 100644
--- a/src/mds-registry/slave.c
+++ b/src/mds-registry/slave.c
@@ -185,6 +185,7 @@ int start_slave(hash_table_t* restrict wait_set, const char* restrict recv_clien
if (monotone(&(slave->dethklok)))
goto pfail_in_mutex;
slave->dethklok.tv_sec += (time_t)atoll(ttl);
+ /* It should really be `atol`, but we want to be future proof. */
break;
}