From 98a8ac8498974e499fc129878ab05b9a7bf8ba30 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sat, 5 Oct 2024 23:23:17 +0200 Subject: misc + update e-mail MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/mds-server/interceptors.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/mds-server/interceptors.c') 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; -- cgit v1.2.3-70-g09d2