summaryrefslogtreecommitdiff
path: root/lib/ftw_.h
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2003-05-05 07:52:26 +0000
committerJim Meyering <jim@meyering.net>2003-05-05 07:52:26 +0000
commit95623ba86e60202ddcbd93df887f3d5f7d5c257c (patch)
tree19b36ae65a448b6dd16e8d6223b90eb7a8029aba /lib/ftw_.h
parent75fa058191e8bbe101815492808a2be6cd0273b3 (diff)
downloadcoreutils-95623ba86e60202ddcbd93df887f3d5f7d5c257c.tar.xz
(enum Ftw_option): Name this previously-anonymous enum.
(enum Ftw_option) [FTW_N_MEMBERS]: New member.
Diffstat (limited to 'lib/ftw_.h')
-rw-r--r--lib/ftw_.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/ftw_.h b/lib/ftw_.h
index c202fb3b0..ffb832261 100644
--- a/lib/ftw_.h
+++ b/lib/ftw_.h
@@ -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
};