[CalendarServer-changes] [9700] CalendarServer/trunk
source_changes at macosforge.org
source_changes at macosforge.org
Mon Aug 13 23:43:45 PDT 2012
Revision: 9700
http://trac.macosforge.org/projects/calendarserver/changeset/9700
Author: glyph at apple.com
Date: 2012-08-13 23:43:42 -0700 (Mon, 13 Aug 2012)
Log Message:
-----------
Py_ssize_t is not always int.
Modified Paths:
--------------
CalendarServer/trunk/twext/python/sendmsg.c
Property Changed:
----------------
CalendarServer/trunk/
Modified: CalendarServer/trunk/twext/python/sendmsg.c
===================================================================
--- CalendarServer/trunk/twext/python/sendmsg.c 2012-08-14 00:40:30 UTC (rev 9699)
+++ CalendarServer/trunk/twext/python/sendmsg.c 2012-08-14 06:43:42 UTC (rev 9700)
@@ -220,7 +220,8 @@
/* Unpack the tuples into the control message. */
struct cmsghdr *control_message = CMSG_FIRSTHDR(&message_header);
while ( (item = PyIter_Next(iterator)) ) {
- int data_len, type, level;
+ int type, level;
+ Py_ssize_t data_len;
size_t data_size;
unsigned char *data, *cmsg_data;
@@ -250,7 +251,7 @@
free(message_header.msg_control);
PyErr_Format(PyExc_OverflowError,
- "CMSG_LEN(%d) > SOCKLEN_MAX", data_len);
+ "CMSG_LEN(%zd) > SOCKLEN_MAX", data_len);
return NULL;
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20120813/3a85633c/attachment.html>
More information about the calendarserver-changes
mailing list