[SVN] r536 - /branches/cvsmerge/cyrus-cvs/imap/mailbox.c
debian at incase.de
debian at incase.de
Sun Aug 6 18:06:02 UTC 2006
Author: sven
Date: Sun Aug 6 20:06:01 2006
New Revision: 536
URL: https://mail.incase.de/viewcvs?rev=536&root=cyrus22&view=rev
Log:
upstream patch: use ntohl() instead of htonl() in mailbox_read_index_record() - integrated as 0018-upstream-ntohl-instead-of-htonl.dpatch in trunk r 535
Modified:
branches/cvsmerge/cyrus-cvs/imap/mailbox.c
Modified: branches/cvsmerge/cyrus-cvs/imap/mailbox.c
URL: https://mail.incase.de/viewcvs/branches/cvsmerge/cyrus-cvs/imap/mailbox.c?rev=536&root=cyrus22&r1=535&r2=536&view=diff
==============================================================================
--- branches/cvsmerge/cyrus-cvs/imap/mailbox.c (original)
+++ branches/cvsmerge/cyrus-cvs/imap/mailbox.c Sun Aug 6 20:06:01 2006
@@ -1,5 +1,5 @@
/* mailbox.c -- Mailbox manipulation routines
- * $Id: mailbox.c,v 1.161 2006/06/02 18:56:52 murch Exp $
+ * $Id: mailbox.c,v 1.162 2006/08/04 14:40:54 murch Exp $
* Copyright (c) 1998-2003 Carnegie Mellon University. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -884,20 +884,20 @@
buf = (unsigned char*) mailbox->index_base + offset;
- record->uid = htonl(*((bit32 *)(buf+OFFSET_UID)));
- record->internaldate = htonl(*((bit32 *)(buf+OFFSET_INTERNALDATE)));
- record->sentdate = htonl(*((bit32 *)(buf+OFFSET_SENTDATE)));
- record->size = htonl(*((bit32 *)(buf+OFFSET_SIZE)));
- record->header_size = htonl(*((bit32 *)(buf+OFFSET_HEADER_SIZE)));
- record->content_offset = htonl(*((bit32 *)(buf+OFFSET_CONTENT_OFFSET)));
- record->cache_offset = htonl(*((bit32 *)(buf+OFFSET_CACHE_OFFSET)));
- record->last_updated = htonl(*((bit32 *)(buf+OFFSET_LAST_UPDATED)));
- record->system_flags = htonl(*((bit32 *)(buf+OFFSET_SYSTEM_FLAGS)));
+ record->uid = ntohl(*((bit32 *)(buf+OFFSET_UID)));
+ record->internaldate = ntohl(*((bit32 *)(buf+OFFSET_INTERNALDATE)));
+ record->sentdate = ntohl(*((bit32 *)(buf+OFFSET_SENTDATE)));
+ record->size = ntohl(*((bit32 *)(buf+OFFSET_SIZE)));
+ record->header_size = ntohl(*((bit32 *)(buf+OFFSET_HEADER_SIZE)));
+ record->content_offset = ntohl(*((bit32 *)(buf+OFFSET_CONTENT_OFFSET)));
+ record->cache_offset = ntohl(*((bit32 *)(buf+OFFSET_CACHE_OFFSET)));
+ record->last_updated = ntohl(*((bit32 *)(buf+OFFSET_LAST_UPDATED)));
+ record->system_flags = ntohl(*((bit32 *)(buf+OFFSET_SYSTEM_FLAGS)));
for (n = 0; n < MAX_USER_FLAGS/32; n++) {
- record->user_flags[n] = htonl(*((bit32 *)(buf+OFFSET_USER_FLAGS+4*n)));
- }
- record->content_lines = htonl(*((bit32 *)(buf+OFFSET_CONTENT_LINES)));
- record->cache_version = htonl(*((bit32 *)(buf+OFFSET_CACHE_VERSION)));
+ record->user_flags[n] = ntohl(*((bit32 *)(buf+OFFSET_USER_FLAGS+4*n)));
+ }
+ record->content_lines = ntohl(*((bit32 *)(buf+OFFSET_CONTENT_LINES)));
+ record->cache_version = ntohl(*((bit32 *)(buf+OFFSET_CACHE_VERSION)));
return 0;
}
More information about the Pkg-Cyrus-imapd-Debian-devel
mailing list