From d0434d46dcaf9cff3b231787bcf335c5d3cd291d Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Thu, 25 Sep 2014 11:46:39 +0100 Subject: [PATCH] Use ISO C strchr() instead of BSD index() Bug: https://bugs.freedesktop.org/show_bug.cgi?id=24307 --- bus/signals.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bus/signals.c b/bus/signals.c index b283c4d..119d813 100644 --- a/bus/signals.c +++ b/bus/signals.c @@ -22,7 +22,9 @@ */ #include -#include + +#include + #include "signals.h" #include "services.h" #include "utils.h" @@ -130,7 +132,7 @@ append_key_and_escaped_value (DBusString *str, const char *token, const char *va while (*p != '\0') { - const char *next = index (p, '\''); + const char *next = strchr (p, '\''); if (next) { -- 2.1.1