diff options
author | Mattias Andrée <m@maandree.se> | 2024-10-05 23:23:17 +0200 |
---|---|---|
committer | Mattias Andrée <m@maandree.se> | 2024-10-05 23:23:17 +0200 |
commit | 98a8ac8498974e499fc129878ab05b9a7bf8ba30 (patch) | |
tree | 2914967687516632a93da9af59818f22d3120861 /src/mds-registry/slave.c | |
parent | Update e-mail (diff) | |
download | mds-98a8ac8498974e499fc129878ab05b9a7bf8ba30.tar.gz mds-98a8ac8498974e499fc129878ab05b9a7bf8ba30.tar.bz2 mds-98a8ac8498974e499fc129878ab05b9a7bf8ba30.tar.xz |
Signed-off-by: Mattias Andrée <m@maandree.se>
Diffstat (limited to '')
-rw-r--r-- | src/mds-registry/slave.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mds-registry/slave.c b/src/mds-registry/slave.c index 4639393..daf156a 100644 --- a/src/mds-registry/slave.c +++ b/src/mds-registry/slave.c @@ -1,6 +1,6 @@ /** * mds — A micro-display server - * Copyright © 2014, 2015, 2016, 2017 Mattias Andrée (maandree@kth.se) + * Copyright © 2014, 2015, 2016, 2017 Mattias Andrée (m@maandree.se) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -183,7 +183,7 @@ start_slave(hash_table_t *restrict wait_set, const char *restrict recv_client_id fail_if (slave->node == LINKED_LIST_UNUSED); for (i = 0; i < received.header_count; i++) { - if (startswith(received.headers[i], "Time to live: ")) { + if (strstarts(received.headers[i], "Time to live: ")) { ttl = received.headers[i] + strlen("Time to live: "); slave->timed = 1; fail_if (monotone(&(slave->dethklok))); |