git.samba.org
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
408e693
)
Optimized the reacquisition of the code value from the msg2sndr list.
author
Wayne Davison
<wayned@samba.org>
Thu, 16 Mar 2006 02:26:27 +0000
(
02:26
+0000)
committer
Wayne Davison
<wayned@samba.org>
Thu, 16 Mar 2006 02:26:27 +0000
(
02:26
+0000)
io.c
patch
|
blob
|
history
diff --git
a/io.c
b/io.c
index 0fa5af9edaec4e6d1212d893d84de78675e527bf..458ed7fbd20c1d88b05f2be0983c88a0791197f2 100644
(file)
--- 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;