2009-12-02 08:24:44

by tip-bot for Liming Wang

[permalink] [raw]
Subject: [PATCH] perf tools: fix compiling error for strndup

Remove redundant include files to avoid compiling error.

Signed-off-by: Liming Wang <[email protected]>
Signed-off-by: Xiao Guangrong <[email protected]>
Acked-by: Frederic Weisbecker <[email protected]>
---
tools/perf/util/string.c | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/tools/perf/util/string.c b/tools/perf/util/string.c
index 0977cf4..f24a8cc 100644
--- a/tools/perf/util/string.c
+++ b/tools/perf/util/string.c
@@ -1,5 +1,3 @@
-#include <string.h>
-#include <stdlib.h>
#include "string.h"
#include "util.h"

--
1.6.0.3


2009-12-02 16:51:52

by Masami Hiramatsu

[permalink] [raw]
Subject: Re: [PATCH] perf tools: fix compiling error for strndup

Liming Wang wrote:
> Remove redundant include files to avoid compiling error.
>
> Signed-off-by: Liming Wang<[email protected]>
> Signed-off-by: Xiao Guangrong<[email protected]>
> Acked-by: Frederic Weisbecker<[email protected]>

Thanks for fixing it!

Acked-by: Masami Hiramatsu <[email protected]>

> ---
> tools/perf/util/string.c | 2 --
> 1 files changed, 0 insertions(+), 2 deletions(-)
>
> diff --git a/tools/perf/util/string.c b/tools/perf/util/string.c
> index 0977cf4..f24a8cc 100644
> --- a/tools/perf/util/string.c
> +++ b/tools/perf/util/string.c
> @@ -1,5 +1,3 @@
> -#include<string.h>
> -#include<stdlib.h>
> #include "string.h"
> #include "util.h"
>

--
Masami Hiramatsu

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

e-mail: [email protected]