summaryrefslogtreecommitdiff
path: root/gdb/gdb_dirent.h
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/gdb_dirent.h')
-rw-r--r--gdb/gdb_dirent.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/gdb_dirent.h b/gdb/gdb_dirent.h
index eb147676556..ba28ca55616 100644
--- a/gdb/gdb_dirent.h
+++ b/gdb/gdb_dirent.h
@@ -23,11 +23,11 @@
/* See description of `AC_HEADER_DIRENT' in the Autoconf manual. */
#ifdef HAVE_DIRENT_H
-# include <dirent.h>
-# define NAMELEN(dirent) strlen((dirent)->d_name)
+# include <dirent.h> /* OK: dirent.h */
+# define NAMELEN(dirent) strlen ((dirent)->d_name) /* OK: strlen d_name */
#else
# define dirent direct
-# define NAMELEN(dirent) (dirent)->d_namelen
+# define NAMELEN(dirent) (dirent)->d_namelen /* OK: d_namelen */
# ifdef HAVE_SYS_NDIR_H
# include <sys/ndir.h>
# endif