aboutsummaryrefslogtreecommitdiff
path: root/posix/glob_pattern_p.c
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2017-09-05 11:02:24 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2017-09-08 16:34:04 +0200
commit07b4f49db285f39594859c58893e3404b33200dd (patch)
tree7c013b255ca113a69fba1ddf5281ca8f3e39ab0b /posix/glob_pattern_p.c
parent116f1c64d8d84ecbf269ac70a35657aa057f26c3 (diff)
downloadglibc-07b4f49db285f39594859c58893e3404b33200dd.tar
glibc-07b4f49db285f39594859c58893e3404b33200dd.tar.gz
glibc-07b4f49db285f39594859c58893e3404b33200dd.tar.bz2
glibc-07b4f49db285f39594859c58893e3404b33200dd.zip
posix: Use enum for __glob_pattern_type result
This patch replaces the internal integer constant from __glob_pattern_type return with a proper enum. Checked on x86_64-linux-gnu and on a build using build-many-glibcs.py for all major architectures. * posix/glob_internal.h (glob_pattern_type_t): New enumeration. (__glob_pattern_type): Use __glob_pat_types. * posix/glob_pattern_p.c (__glob_pattern_p): Likewise. * posix/glob.c (glob): Likewise. (glob_in_dir): Likewise.
Diffstat (limited to 'posix/glob_pattern_p.c')
-rw-r--r--posix/glob_pattern_p.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/posix/glob_pattern_p.c b/posix/glob_pattern_p.c
index a17d337182..8489106e90 100644
--- a/posix/glob_pattern_p.c
+++ b/posix/glob_pattern_p.c
@@ -28,6 +28,6 @@
int
__glob_pattern_p (const char *pattern, int quote)
{
- return __glob_pattern_type (pattern, quote) == 1;
+ return __glob_pattern_type (pattern, quote) == GLOBPAT_SPECIAL;
}
weak_alias (__glob_pattern_p, glob_pattern_p)