Skip to contentSkip to conversation

perf: Do not include libgen.h

PATCH Applied David Miller 2 participants 3 messages Mar 27, 2012 – Mar 31, 2012 perf events

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 perf: Do not include libgen.h

That causes us to end up using the XPG version of basename which can modify it's argument.

---
 tools/perf/util/symbol.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
tools/perf/util/symbol.c +0 -1
index 472b467..c0a028c 100644
@@ -1,6 +1,5 @@
 #include <dirent.h>
 #include <errno.h>
-#include <libgen.h>
 #include <stdlib.h>
 #include <stdio.h>
 #include <string.h>
Signature · 1 line
1.7.9.1
#1 lore raw

Em Tue, Mar 27, 2012 at 12:03:01AM -0400, David Miller escreveu:

Quoted 3 lines

That causes us to end up using the XPG version of basename which can modify it's argument.

Thanks, applied.

- Arnaldo

#2 lore raw

[tip:perf/urgent] perf symbols: Do not include libgen.h

In reply to David Miller
Commit-ID:  3738d40ec51317eb8390218a33513ca35656f107
Gitweb:     http://git.kernel.org/tip/3738d40ec51317eb8390218a33513ca35656f107
Author:     David Miller <[email protected]>
AuthorDate: Tue, 27 Mar 2012 00:03:01 -0400
Committer:  Arnaldo Carvalho de Melo <[email protected]>
CommitDate: Tue, 27 Mar 2012 10:57:48 -0300

perf symbols: Do not include libgen.h

That causes us to end up using the XPG version of basename which can modify it's argument.

---
 tools/perf/util/symbol.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
tools/perf/util/symbol.c +0 -1
index 5dd83c3..d9e995b 100644
@@ -1,6 +1,5 @@
 #include <dirent.h>
 #include <errno.h>
-#include <libgen.h>
 #include <stdlib.h>
 #include <stdio.h>
 #include <string.h>