From 8b1ae8fa3f6bac3ae02e4b445db88489835c626d Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Mon, 31 May 2004 18:42:40 +0000 Subject: [PATCH] Too few parens for my taste in this macro. --- src/interfaces/libpq/libpq-int.h | 4 ++-- 1 file 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 */