From c37196ec1516eb89d71f8c7a4e8dec89040f1288 Mon Sep 17 00:00:00 2001 From: Jeff Hill Date: Wed, 7 Aug 1991 17:19:33 +0000 Subject: [PATCH] m_postsize needed htons() for the VAX --- src/ca/access.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/ca/access.c b/src/ca/access.c index fad5437bc..7df956aeb 100644 --- a/src/ca/access.c +++ b/src/ca/access.c @@ -110,11 +110,12 @@ * SPARC octal rounding */ #define CAC_ADD_MSG(PIIU) \ - EXTMSGPTR(PIIU)->m_postsize = \ - CA_MESSAGE_ALIGN(EXTMSGPTR(PIIU)->m_postsize),\ - (PIIU)->send->stk += sizeof(struct extmsg) + \ - EXTMSGPTR(PIIU)->m_postsize, \ - EXTMSGPTR(PIIU)->m_postsize = htons(EXTMSGPTR(PIIU)->m_postsize); +{ \ + struct extmsg *mp = EXTMSGPTR(PIIU); \ + mp->m_postsize = CA_MESSAGE_ALIGN(mp->m_postsize); \ + (PIIU)->send->stk += sizeof(struct extmsg) + mp->m_postsize; \ + mp->m_postsize = htons(mp->m_postsize); \ +}