]> granicus.if.org Git - postgresql/commitdiff
2. The file /usr/local/pgsql/src/backend/lipq/pgcomprim.c has two
authorMarc G. Fournier <scrappy@hub.org>
Tue, 15 Apr 1997 17:25:47 +0000 (17:25 +0000)
committerMarc G. Fournier <scrappy@hub.org>
Tue, 15 Apr 1997 17:25:47 +0000 (17:25 +0000)
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>

src/backend/libpq/pqcomprim.c

index f73b48201113cefc908298cebd6eb52443c270a8..d10be39d81706ca9872368da1adc591505fbe5ef 100644 (file)
 #  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 */