aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/perf_counter/util/abspath.c
diff options
context:
space:
mode:
Diffstat (limited to 'Documentation/perf_counter/util/abspath.c')
-rw-r--r--Documentation/perf_counter/util/abspath.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Documentation/perf_counter/util/abspath.c b/Documentation/perf_counter/util/abspath.c
index 649f34f83365..61d33b81fc97 100644
--- a/Documentation/perf_counter/util/abspath.c
+++ b/Documentation/perf_counter/util/abspath.c
@@ -5,7 +5,7 @@
5 * symlink to a directory, we do not want to say it is a directory when 5 * symlink to a directory, we do not want to say it is a directory when
6 * dealing with tracked content in the working tree. 6 * dealing with tracked content in the working tree.
7 */ 7 */
8int is_directory(const char *path) 8static int is_directory(const char *path)
9{ 9{
10 struct stat st; 10 struct stat st;
11 return (!stat(path, &st) && S_ISDIR(st.st_mode)); 11 return (!stat(path, &st) && S_ISDIR(st.st_mode));