projects
/
platform
/
upstream
/
dbus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d5ea45d
)
Use ISO C strchr() instead of BSD index()
author
Simon McVittie
<simon.mcvittie@collabora.co.uk>
Thu, 25 Sep 2014 10:46:39 +0000
(11:46 +0100)
committer
Simon McVittie
<simon.mcvittie@collabora.co.uk>
Thu, 25 Sep 2014 11:59:50 +0000
(12:59 +0100)
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=24307
bus/signals.c
patch
|
blob
|
history
diff --git
a/bus/signals.c
b/bus/signals.c
index
b283c4d
..
119d813
100644
(file)
--- 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)
{