Skip to contentSkip to conversation

perf tools: fix compiling error for strndup

PATCH In review Liming Wang 2 participants 2 messages Dec 2, 2009 perf events

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 perf tools: fix compiling error for strndup

Remove redundant include files to avoid compiling error.

---
 tools/perf/util/string.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
tools/perf/util/string.c +0 -2
index 0977cf4..f24a8cc 100644
@@ -1,5 +1,3 @@
-#include <string.h>
-#include <stdlib.h>
 #include "string.h"
 #include "util.h"
 
Signature · 1 line
1.6.0.3
Acked-by on v1 1/1
#1 lore raw
Quoted 5 lines · Liming Wang

Remove redundant include files to avoid compiling error.

Thanks for fixing it!

Quoted 14 lines
---
  tools/perf/util/string.c |    2 --
  1 files changed, 0 insertions(+), 2 deletions(-)
tools/perf/util/string.c +0 -2
index 0977cf4..f24a8cc 100644
@@ -1,5 +1,3 @@
-#include<string.h>
-#include<stdlib.h>
  #include "string.h"
  #include "util.h"
 
Signature · 7 lines
Masami Hiramatsu

Software Engineer
Hitachi Computer Products (America), Inc.
Software Solutions Division

e-mail: [email protected]