diff options
Diffstat (limited to 'src/mds-server/interceptors.c')
-rw-r--r-- | src/mds-server/interceptors.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mds-server/interceptors.c b/src/mds-server/interceptors.c index bcb8621..ede924d 100644 --- a/src/mds-server/interceptors.c +++ b/src/mds-server/interceptors.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 @@ -99,7 +99,7 @@ add_intercept_condition(client_t *client, char *condition, int64_t priority, int also look for non-modifying condition to swap position with for optimisation. */ for (i = 0; i < n; i++) { - if ((conds[i].header_hash != hash) || !strequals(conds[i].condition, condition)) { + if ((conds[i].header_hash != hash) || !streq(conds[i].condition, condition)) { /* Look for the first non-modifying, this is a part of the optimisation where we put all modifying conditions at the beginning. */ @@ -186,8 +186,8 @@ is_condition_matching(interception_condition_t *cond, size_t *hashes, if (*cond->condition == '\0') return 1; else if ((cond->header_hash == hashes[i]) && - (strequals(cond->condition, keys[i]) || - strequals(cond->condition, headers[i]))) + (streq(cond->condition, keys[i]) || + streq(cond->condition, headers[i]))) return 1; } return 0; |