diff options
author | jkh <jkh@FreeBSD.org> | 2003-12-18 10:41:39 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 2003-12-18 10:41:39 +0000 |
commit | c26ef65642ce5611e36437004fe135f2a1a23b4f (patch) | |
tree | 53bff5544aa977d51c928781326a366039a2ebda /include | |
parent | 797609fcedc368e6aa9a807fa173d4236aa4b88a (diff) | |
download | FreeBSD-src-c26ef65642ce5611e36437004fe135f2a1a23b4f.zip FreeBSD-src-c26ef65642ce5611e36437004fe135f2a1a23b4f.tar.gz |
Now I understand what Bruce was getting at - -1 can be parsed as two
tokens, so it does indeed need to be parenthesized. Duh. Sometimes
it can stare you right and the face and you still don't see it. Thanks, bde.
Diffstat (limited to 'include')
-rw-r--r-- | include/fnmatch.h | 2 | ||||
-rw-r--r-- | include/regex.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/include/fnmatch.h b/include/fnmatch.h index 3958338..f905ff6 100644 --- a/include/fnmatch.h +++ b/include/fnmatch.h @@ -46,7 +46,7 @@ #define FNM_PERIOD 0x04 /* Period must be matched by period. */ #if __XSI_VISIBLE -#define FNM_NOSYS -1 /* Reserved. */ +#define FNM_NOSYS (-1) /* Reserved. */ #endif #if __BSD_VISIBLE diff --git a/include/regex.h b/include/regex.h index 5c13afe..b4e0132 100644 --- a/include/regex.h +++ b/include/regex.h @@ -75,7 +75,7 @@ typedef struct { #define REG_DUMP 0200 /* regerror() flags */ -#define REG_ENOSYS -1 +#define REG_ENOSYS (-1) #define REG_NOMATCH 1 #define REG_BADPAT 2 #define REG_ECOLLATE 3 |