31e4f1d7d2
Also, makes sense to take this code out, as some other stuff is bound to want this at some point. This library is incredibly sloppy engineering. Reasonably readable code, looks sensible, but incredible lack of testing (doesn't even pass its own testsuite on a stable release... and does a lot of things that can't work outside of linux... makes you wonder who is actually using this...)
15 lines
582 B
Plaintext
15 lines
582 B
Plaintext
$OpenBSD: patch-lib_libutil_memblock_c,v 1.1.1.1 2006/12/18 14:39:56 espie Exp $
|
|
--- lib/libutil/memblock.c.orig Mon Dec 18 13:29:37 2006
|
|
+++ lib/libutil/memblock.c Mon Dec 18 13:30:00 2006
|
|
@@ -73,8 +73,8 @@ xmlrpc_mem_block_init(xmlrpc_env *
|
|
|
|
blockP->_block = (void*) malloc(blockP->_allocated);
|
|
if (!blockP->_block)
|
|
- xmlrpc_faultf(envP, "Can't allocate %u-byte memory block",
|
|
- blockP->_allocated);
|
|
+ xmlrpc_faultf(envP, "Can't allocate %lu-byte memory block",
|
|
+ (unsigned long)blockP->_allocated);
|
|
}
|
|
|
|
|