summaryrefslogtreecommitdiffstats
path: root/tools/perf/util/path.c
diff options
context:
space:
mode:
authorNamhyung Kim <namhyung.kim@lge.com>2012-09-28 11:32:08 +0200
committerArnaldo Carvalho de Melo <acme@redhat.com>2012-10-02 23:36:24 +0200
commitd6e66832a710c0e6d1376e8d39ee108636a177e7 (patch)
tree9398a9aea2316d7ae171ce97b3929aeaf2930252 /tools/perf/util/path.c
parentperf tools: Convert to GTK2_SUPPORT (diff)
downloadlinux-d6e66832a710c0e6d1376e8d39ee108636a177e7.tar.xz
linux-d6e66832a710c0e6d1376e8d39ee108636a177e7.zip
perf tools: Convert to HAVE_STRLCPY
For similar reason of previous patches, convert NO_STRLCPY to positive HAVE_STRLCPY. Signed-off-by: Namhyung Kim <namhyung@kernel.org> Cc: Ingo Molnar <mingo@kernel.org> Cc: Paul Mackerras <paulus@samba.org> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Link: http://lkml.kernel.org/r/1348824728-14025-13-git-send-email-namhyung@kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/path.c')
-rw-r--r--tools/perf/util/path.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/util/path.c b/tools/perf/util/path.c
index bd7497711424..a8c49548ca48 100644
--- a/tools/perf/util/path.c
+++ b/tools/perf/util/path.c
@@ -22,7 +22,7 @@ static const char *get_perf_dir(void)
return ".";
}
-#ifdef NO_STRLCPY
+#ifndef HAVE_STRLCPY
size_t strlcpy(char *dest, const char *src, size_t size)
{
size_t ret = strlen(src);