diff options
author | Christian Heimes <christian@cheimes.de> | 2013-06-23 22:57:02 +0200 |
---|---|---|
committer | Christian Heimes <christian@cheimes.de> | 2013-06-23 22:57:02 +0200 |
commit | 858c9471558845a3767480eea8905752282f3a27 (patch) | |
tree | ad74b44a132456eac758c0937bd346818cd1e981 /Modules/_stat.c | |
parent | 5707d508e1b589045ce1062da3497ad9653f1cf6 (diff) | |
download | cpython-git-858c9471558845a3767480eea8905752282f3a27.tar.gz |
Fix a typo in S_ISDIR, S_ISCHR, S_ISBLK and S_ISREG.
Add extra braces to S_IS*() macros
Diffstat (limited to 'Modules/_stat.c')
-rw-r--r-- | Modules/_stat.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/Modules/_stat.c b/Modules/_stat.c index aaf6fe5ca2..3b4eb82b15 100644 --- a/Modules/_stat.c +++ b/Modules/_stat.c @@ -87,31 +87,31 @@ typedef unsigned short mode_t; /* S_ISXXX() */ #ifndef S_ISDIR -# define S_ISDIR(mode) ((mode) & S_IFMT) == S_IDIR +# define S_ISDIR(mode) (((mode) & S_IFMT) == S_IFDIR) #endif #ifndef S_ISCHR -# define S_ISCHR(mode) ((mode) & S_IFMT) == S_ICHR +# define S_ISCHR(mode) (((mode) & S_IFMT) == S_IFCHR) #endif #ifndef S_ISBLK -# define S_ISBLK(mode) ((mode) & S_IFMT) == S_IBLK +# define S_ISBLK(mode) (((mode) & S_IFMT) == S_IFBLK) #endif #ifndef S_ISREG -# define S_ISREG(mode) ((mode) & S_IFMT) == S_IREG +# define S_ISREG(mode) (((mode) & S_IFMT) == S_IFREG) #endif #ifndef S_ISFIFO -# define S_ISFIFO(mode) ((mode) & S_IFMT) == S_IFIFO +# define S_ISFIFO(mode) (((mode) & S_IFMT) == S_IFIFO) #endif #ifndef S_ISLNK -# define S_ISLNK(mode) ((mode) & S_IFMT) == S_IFLNK +# define S_ISLNK(mode) (((mode) & S_IFMT) == S_IFLNK) #endif #ifndef S_ISSOCK -# define S_ISSOCK(mode) ((mode) & S_IFMT) == S_IFSOCK +# define S_ISSOCK(mode) (((mode) & S_IFMT) == S_IFSOCK) #endif #ifndef S_ISDOOR |