aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMarc G. Fournier <scrappy@hub.org>1997-04-15 17:25:47 +0000
committerMarc G. Fournier <scrappy@hub.org>1997-04-15 17:25:47 +0000
commitd8a300d86712e6c81eb3208d78dabbd62be0f565 (patch)
tree61e3a539be8e82b75c3e13d3821bb29bd21d09c1 /src
parent953ac7b55a889febb3cd7cfad5b1b4042d009db0 (diff)
downloadpostgresql-d8a300d86712e6c81eb3208d78dabbd62be0f565.tar.gz
postgresql-d8a300d86712e6c81eb3208d78dabbd62be0f565.zip
2. The file /usr/local/pgsql/src/backend/lipq/pgcomprim.c has two
invalid macro definitions, the compiler complains about: "pqcomprim.c", line 48.9: 1506-275 (S) Unexpected text ';' ignored. "pqcomprim.c", line 61.9: 1506-275 (S) Unexpected text ';' ignored. The ';' terminating the macro definition ntoh_s(n) on line 27 and ntoh_l(n) on line 28 should be removed. Pointed out by: Olaf Mittelstaedt <MSTAEDT@va-sigi.va.fh-ulm.de>
Diffstat (limited to 'src')
-rw-r--r--src/backend/libpq/pqcomprim.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/libpq/pqcomprim.c b/src/backend/libpq/pqcomprim.c
index f73b4820111..d10be39d817 100644
--- a/src/backend/libpq/pqcomprim.c
+++ b/src/backend/libpq/pqcomprim.c
@@ -24,10 +24,10 @@
# define hton_l(n) n
#else /* BYTE_ORDER != LITTLE_ENDIAN */
# if BYTE_ORDER == BIG_ENDIAN
-# define ntoh_s(n) (u_short)(((u_char *) &n)[0] << 8 | ((u_char *) &n)[1]);
+# define ntoh_s(n) (u_short)(((u_char *) &n)[0] << 8 | ((u_char *) &n)[1])
# define ntoh_l(n) (u_long)(((u_char *)&n)[0] << 24 | \
((u_char *)&n)[1] << 16 | \
- ((u_char *)&n)[2] << 8 | ((u_char *)&n)[3]);
+ ((u_char *)&n)[2] << 8 | ((u_char *)&n)[3])
# define hton_s(n) (ntoh_s(n))
# define hton_l(n) (ntoh_l(n))
# else /* BYTE_ORDER != BIG_ENDIAN */