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-echo.c | |
parent | Update e-mail (diff) | |
download | mds-master.tar.gz mds-master.tar.bz2 mds-master.tar.xz |
Signed-off-by: Mattias Andrée <m@maandree.se>
Diffstat (limited to 'src/mds-echo.c')
-rw-r--r-- | src/mds-echo.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mds-echo.c b/src/mds-echo.c index 72f43f8..5dbbd11 100644 --- a/src/mds-echo.c +++ b/src/mds-echo.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 @@ -289,7 +289,7 @@ echo_message(void) /* Fetch headers. */ #define __get_header(storage, header, skip)\ - (startswith(received.headers[i], header))\ + (strstarts(received.headers[i], header))\ storage = received.headers[i] + skip * strlen(header) for (i = 0; i < received.header_count; i++) { @@ -307,7 +307,7 @@ echo_message(void) #undef __get_header /* Validate headers. */ - if (!recv_client_id || strequals(recv_client_id, "0:0")) + if (!recv_client_id || streq(recv_client_id, "0:0")) return eprint("received message from anonymous sender, ignoring."), 0; else if (!recv_message_id) return eprint("received message without ID, ignoring, master server is misbehaving."), 0; |