Commit d8a300d8 authored by Marc G. Fournier's avatar Marc G. Fournier

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>
parent 953ac7b5
...@@ -24,10 +24,10 @@ ...@@ -24,10 +24,10 @@
# define hton_l(n) n # define hton_l(n) n
#else /* BYTE_ORDER != LITTLE_ENDIAN */ #else /* BYTE_ORDER != LITTLE_ENDIAN */
# if BYTE_ORDER == BIG_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 | \ # define ntoh_l(n) (u_long)(((u_char *)&n)[0] << 24 | \
((u_char *)&n)[1] << 16 | \ ((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_s(n) (ntoh_s(n))
# define hton_l(n) (ntoh_l(n)) # define hton_l(n) (ntoh_l(n))
# else /* BYTE_ORDER != BIG_ENDIAN */ # else /* BYTE_ORDER != BIG_ENDIAN */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment