]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(enum Ftw_option): Name this previously-anonymous enum.
authorJim Meyering <jim@meyering.net>
Mon, 5 May 2003 07:52:26 +0000 (07:52 +0000)
committerJim Meyering <jim@meyering.net>
Mon, 5 May 2003 07:52:26 +0000 (07:52 +0000)
(enum Ftw_option) [FTW_N_MEMBERS]: New member.

lib/ftw_.h

index c202fb3b02d26465496595bb5f65e7fb3f044116..ffb832261c199348ca448cc233ded8eef13ac20d 100644 (file)
@@ -50,7 +50,7 @@ __BEGIN_DECLS
 
 /* Values for the FLAG argument to the user function passed to `ftw'
    and 'nftw'.  */
-enum
+enum Ftw_option
 {
   FTW_F,               /* Regular file.  */
 # define FTW_F  FTW_F
@@ -89,10 +89,13 @@ enum
 /* These flags are only passed from the `nftw' function.  */
   FTW_DP,              /* Directory, all subdirs have been visited. */
 #  define FTW_DP        FTW_DP
-  FTW_SLN              /* Symbolic link naming non-existing file.  */
+  FTW_SLN,             /* Symbolic link naming non-existing file.  */
 #  define FTW_SLN FTW_SLN
 
 # endif        /* extended X/Open */
+
+  FTW_N_MEMBERS
+# define FTW_N_MEMBERS FTW_N_MEMBERS
 };