diff options
author | Neil Conway | 2005-07-27 12:44:10 +0000 |
---|---|---|
committer | Neil Conway | 2005-07-27 12:44:10 +0000 |
commit | a4c75ece82576b8d124ffdf7580ee6a218b12ccd (patch) | |
tree | cbe246fefbb88605414a8eedb627ff3dbd325d6e /src/include | |
parent | b98b75eb3bf4d1be59e13ce954612c8bab81b08e (diff) |
Fix a few macro definitions to ensure that unary minus is enclosed in
parentheses. This avoids possible operator precedence problems, and
is consistent with most of the macro definitions in the tree.
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/getaddrinfo.h | 20 | ||||
-rw-r--r-- | src/include/rusagestub.h | 4 |
2 files changed, 12 insertions, 12 deletions
diff --git a/src/include/getaddrinfo.h b/src/include/getaddrinfo.h index d71188c6470..8c430bf5d85 100644 --- a/src/include/getaddrinfo.h +++ b/src/include/getaddrinfo.h @@ -15,7 +15,7 @@ * * Copyright (c) 2003-2005, PostgreSQL Global Development Group * - * $PostgreSQL: pgsql/src/include/getaddrinfo.h,v 1.14 2005/01/01 20:44:26 tgl Exp $ + * $PostgreSQL: pgsql/src/include/getaddrinfo.h,v 1.15 2005/07/27 12:44:10 neilc Exp $ * *------------------------------------------------------------------------- */ @@ -31,15 +31,15 @@ /* Various macros that ought to be in <netdb.h>, but might not be */ #ifndef EAI_FAIL -#define EAI_BADFLAGS -1 -#define EAI_NONAME -2 -#define EAI_AGAIN -3 -#define EAI_FAIL -4 -#define EAI_FAMILY -6 -#define EAI_SOCKTYPE -7 -#define EAI_SERVICE -8 -#define EAI_MEMORY -10 -#define EAI_SYSTEM -11 +#define EAI_BADFLAGS (-1) +#define EAI_NONAME (-2) +#define EAI_AGAIN (-3) +#define EAI_FAIL (-4) +#define EAI_FAMILY (-6) +#define EAI_SOCKTYPE (-7) +#define EAI_SERVICE (-8) +#define EAI_MEMORY (-10) +#define EAI_SYSTEM (-11) #endif #ifndef AI_PASSIVE diff --git a/src/include/rusagestub.h b/src/include/rusagestub.h index 45aaa5e3f29..527c8654bc2 100644 --- a/src/include/rusagestub.h +++ b/src/include/rusagestub.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/rusagestub.h,v 1.15 2004/12/31 22:03:19 pgsql Exp $ + * $PostgreSQL: pgsql/src/include/rusagestub.h,v 1.16 2005/07/27 12:44:10 neilc Exp $ * *------------------------------------------------------------------------- */ @@ -21,7 +21,7 @@ #include <limits.h> /* for CLK_TCK */ #define RUSAGE_SELF 0 -#define RUSAGE_CHILDREN -1 +#define RUSAGE_CHILDREN (-1) struct rusage { |