perf tools: Remove string.h from util.h
authorArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 19 Apr 2017 22:06:30 +0000 (19:06 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 24 Apr 2017 16:43:32 +0000 (13:43 -0300)
Not needed in this header, added to the places that need strdup,
strcmp and a few other prototypes.

Link: http://lkml.kernel.org/n/tip-t24yy85xnlv55kyosrum2ubs@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/comm.c
tools/perf/util/namespaces.c
tools/perf/util/util.h
tools/perf/util/xyarray.c

index 530a62a7b51e2676595f5dc242e7667564d0d3fa..7bc981b6bf296ae000407a787bc30aaa22fa574b 100644 (file)
@@ -3,6 +3,7 @@
 #include <errno.h>
 #include <stdlib.h>
 #include <stdio.h>
+#include <string.h>
 #include <linux/refcount.h>
 
 struct comm_str {
index 2de8da64d90c99182c474296618924eb8cf373f2..67dcbcc73c7dcdd95da8af4d45e3257d38123147 100644 (file)
@@ -11,6 +11,7 @@
 #include "event.h"
 #include <stdlib.h>
 #include <stdio.h>
+#include <string.h>
 
 struct namespaces *namespaces__new(struct namespaces_event *event)
 {
index c014b2fc22b3c238d2f946f70888358144af7883..b8dfbe1d96704ee277de0cd0e3825fcec08bbdbe 100644 (file)
@@ -15,7 +15,6 @@
 #include <stddef.h>
 #include <stdlib.h>
 #include <stdarg.h>
-#include <string.h>
 #include <sys/wait.h>
 #include <poll.h>
 #include <linux/types.h>
index c10ba41ef3f6298eb77e624f7f1b14f41555c36c..7251fdbabceda5e0bb88e4b9ae83f501ea9ad517 100644 (file)
@@ -1,5 +1,7 @@
 #include "xyarray.h"
 #include "util.h"
+#include <stdlib.h>
+#include <string.h>
 
 struct xyarray *xyarray__new(int xlen, int ylen, size_t entry_size)
 {