aboutsummaryrefslogtreecommitdiffstats
path: root/src/mds-echo.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/mds-echo.c6
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;