diff options
author | Andrew Cagney <cagney@redhat.com> | 2003-02-01 20:56:57 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2003-02-01 20:56:57 +0000 |
commit | 94bbfd30fef1cc02381977855926b0dd23ee7de8 (patch) | |
tree | 4e1355fcde447bdde57a16cd60c49213d606c92a | |
parent | 7ca9f392fc1c33d83746ffab1f218b149a80d586 (diff) | |
download | gdb-94bbfd30fef1cc02381977855926b0dd23ee7de8.zip gdb-94bbfd30fef1cc02381977855926b0dd23ee7de8.tar.gz gdb-94bbfd30fef1cc02381977855926b0dd23ee7de8.tar.bz2 |
2003-02-01 Andrew Cagney <ac131313@redhat.com>
* gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
strlen d_name.
-rw-r--r-- | gdb/ChangeLog | 3 | ||||
-rw-r--r-- | gdb/gdb_dirent.h | 6 |
2 files changed, 6 insertions, 3 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 390fa36..6e544a3 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,8 @@ 2003-02-01 Andrew Cagney <ac131313@redhat.com> + * gdb_dirent.h: Mark up valid uses of <dirent.h>, 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 eb14767..ba28ca5 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 |