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-server/interceptors.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-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; |