From a5fe17df5c2a99f1ea3b3b0e0a6198b677c7b8b8 Mon Sep 17 00:00:00 2001 From: cagney Date: Sat, 1 Feb 2003 20:56:57 +0000 Subject: [PATCH] 2003-02-01 Andrew Cagney * gdb_dirent.h: Mark up valid uses of , d_namelen and strlen d_name. --- gdb/ChangeLog | 3 +++ gdb/gdb_dirent.h | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 390fa36211..6e544a3b8b 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,8 @@ 2003-02-01 Andrew Cagney + * gdb_dirent.h: Mark up valid uses of , d_namelen and + strlen d_name. + * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS, ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code. (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code. diff --git a/gdb/gdb_dirent.h b/gdb/gdb_dirent.h index eb14767655..ba28ca5561 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 -# define NAMELEN(dirent) strlen((dirent)->d_name) +# include /* 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 # endif -- 2.11.0