summaryrefslogtreecommitdiff
path: root/src/interfaces/libpq/libpq-int.h
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2004-05-31 18:42:40 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2004-05-31 18:42:40 +0000
commit8b1ae8fa3f6bac3ae02e4b445db88489835c626d (patch)
tree0624b4a08e1cd648ddcdf587ccc1b86b22e1c7d2 /src/interfaces/libpq/libpq-int.h
parent87de80e95a7c5999dfaf4b769502c97cbe56248b (diff)
Too few parens for my taste in this macro.
Diffstat (limited to 'src/interfaces/libpq/libpq-int.h')
-rw-r--r--src/interfaces/libpq/libpq-int.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/interfaces/libpq/libpq-int.h b/src/interfaces/libpq/libpq-int.h
index 1ceda02cf4a..e74dbe7b770 100644
--- a/src/interfaces/libpq/libpq-int.h
+++ b/src/interfaces/libpq/libpq-int.h
@@ -12,7 +12,7 @@
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $PostgreSQL: pgsql/src/interfaces/libpq/libpq-int.h,v 1.87 2004/03/25 21:48:59 momjian Exp $
+ * $PostgreSQL: pgsql/src/interfaces/libpq/libpq-int.h,v 1.88 2004/05/31 18:42:40 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -490,7 +490,7 @@ __attribute__((format_arg(1)));
#else
#define SOCK_ERRNO errno
#define SOCK_STRERROR pqStrerror
-#define SOCK_ERRNO_SET(e) errno=e
+#define SOCK_ERRNO_SET(e) (errno = (e))
#endif
#endif /* LIBPQ_INT_H */