[85233] trunk/dports/net
jmr at macports.org
jmr at macports.org
Tue Oct 11 18:24:57 PDT 2011
Revision: 85233
http://trac.macports.org/changeset/85233
Author: jmr at macports.org
Date: 2011-10-11 18:24:57 -0700 (Tue, 11 Oct 2011)
Log Message:
-----------
libtorrent, libtorrent-devel: forgot to cast the valloc return value
Modified Paths:
--------------
trunk/dports/net/libtorrent/files/no_posix_memalign.patch
trunk/dports/net/libtorrent-devel/files/no_posix_memalign.patch
Modified: trunk/dports/net/libtorrent/files/no_posix_memalign.patch
===================================================================
--- trunk/dports/net/libtorrent/files/no_posix_memalign.patch 2011-10-12 00:54:08 UTC (rev 85232)
+++ trunk/dports/net/libtorrent/files/no_posix_memalign.patch 2011-10-12 01:24:57 UTC (rev 85233)
@@ -8,7 +8,7 @@
int __UNUSED result = posix_memalign((void**)&ptr, LT_SMP_CACHE_BYTES, size);
-
+#else
-+ ptr = valloc(size);
++ ptr = (pointer)valloc(size);
+#endif
return ptr;
}
Modified: trunk/dports/net/libtorrent-devel/files/no_posix_memalign.patch
===================================================================
--- trunk/dports/net/libtorrent-devel/files/no_posix_memalign.patch 2011-10-12 00:54:08 UTC (rev 85232)
+++ trunk/dports/net/libtorrent-devel/files/no_posix_memalign.patch 2011-10-12 01:24:57 UTC (rev 85233)
@@ -8,7 +8,7 @@
int __UNUSED result = posix_memalign((void**)&ptr, LT_SMP_CACHE_BYTES, size);
-
+#else
-+ ptr = valloc(size);
++ ptr = (pointer)valloc(size);
+#endif
return ptr;
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20111011/e6945f83/attachment.html>
More information about the macports-changes
mailing list