From: Simon McVittie Date: Thu, 25 Sep 2014 10:46:39 +0000 (+0100) Subject: Use ISO C strchr() instead of BSD index() X-Git-Tag: dbus-1.9.0~4 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9d00d22c3f5b564d64c679e89799881f149a2f8f;p=thirdparty%2Fdbus.git Use ISO C strchr() instead of BSD index() Bug: https://bugs.freedesktop.org/show_bug.cgi?id=24307 --- diff --git a/bus/signals.c b/bus/signals.c index b283c4d9a..119d8130b 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) {