From 5b51c893c563e64f1e6b7e0550f4b8831e641bd1 Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Thu, 16 Mar 2006 02:26:27 +0000 Subject: [PATCH] Optimized the reacquisition of the code value from the msg2sndr list. --- io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/io.c b/io.c index 0fa5af9e..458ed7fb 100644 --- a/io.c +++ b/io.c @@ -1103,7 +1103,7 @@ static void writefd_unbuffered(int fd,char *buf,size_t len) if (msg2sndr.head && !defer_forwarding_messages) { struct msg_list_item *m = msg2sndr.head; - int code = (IVAL(m->buf,0) >> 24) - MPLEX_BASE; + int code = *((uchar*)m->buf+3) - MPLEX_BASE; if (!(msg2sndr.head = m->next)) msg2sndr.tail = NULL; defer_forwarding_messages = 1; -- 2.34.1