diff options
| author | Wayne Davison <wayned@samba.org> | 2006-03-16 02:26:27 +0000 |
|---|---|---|
| committer | Wayne Davison <wayned@samba.org> | 2006-03-16 02:26:27 +0000 |
| commit | 5b51c893c563e64f1e6b7e0550f4b8831e641bd1 (patch) | |
| tree | 7d92b79b7dc78b65cad51b3e89d05a64adccefff /io.c | |
| parent | 408e69396c7efd881185face829c2057044c61e5 (diff) | |
| download | android_external_rsync-5b51c893c563e64f1e6b7e0550f4b8831e641bd1.tar.gz android_external_rsync-5b51c893c563e64f1e6b7e0550f4b8831e641bd1.tar.bz2 android_external_rsync-5b51c893c563e64f1e6b7e0550f4b8831e641bd1.zip | |
Optimized the reacquisition of the code value from the msg2sndr list.
Diffstat (limited to 'io.c')
| -rw-r--r-- | io.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |
