summaryrefslogtreecommitdiff
path: root/bus/signals.c
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2014-09-25 11:46:39 +0100
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2014-09-25 12:59:50 +0100
commit9d00d22c3f5b564d64c679e89799881f149a2f8f (patch)
tree25661de8c4a23a726c86935c3fc74309c3e74da7 /bus/signals.c
parentd5ea45d73558cc5f7a38eb1d2805f52b31d89abc (diff)
Use ISO C strchr() instead of BSD index()
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=24307
Diffstat (limited to 'bus/signals.c')
-rw-r--r--bus/signals.c6
1 files changed, 4 insertions, 2 deletions
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 <config.h>
-#include <strings.h>
+
+#include <string.h>
+
#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)
{