aboutsummaryrefslogtreecommitdiff
path: root/src/include/getaddrinfo.h
diff options
context:
space:
mode:
authorNeil Conway <neilc@samurai.com>2005-07-27 12:44:10 +0000
committerNeil Conway <neilc@samurai.com>2005-07-27 12:44:10 +0000
commita4c75ece82576b8d124ffdf7580ee6a218b12ccd (patch)
treecbe246fefbb88605414a8eedb627ff3dbd325d6e /src/include/getaddrinfo.h
parentb98b75eb3bf4d1be59e13ce954612c8bab81b08e (diff)
downloadpostgresql-a4c75ece82576b8d124ffdf7580ee6a218b12ccd.tar.gz
postgresql-a4c75ece82576b8d124ffdf7580ee6a218b12ccd.zip
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/getaddrinfo.h')
-rw-r--r--src/include/getaddrinfo.h20
1 files changed, 10 insertions, 10 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