From c26ef65642ce5611e36437004fe135f2a1a23b4f Mon Sep 17 00:00:00 2001 From: jkh Date: Thu, 18 Dec 2003 10:41:39 +0000 Subject: [PATCH] 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. --- include/fnmatch.h | 2 +- include/regex.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/fnmatch.h b/include/fnmatch.h index 3958338c11a9..f905ff6e3c26 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 5c13afea4159..b4e01325acdc 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