[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
declarations missing in libraries/liblunicode/ucstr.c (ITS#2630)
Full_Name: Oliver Eikemeier
Version: 2.2.0alpha
OS: FreeBSD
URL:
Submission from: (NULL) (80.128.179.49)
The prototypes of
ber_dupbv_x
ber_memalloc_x
are missing in libraries/liblunicode/ucstr.c, implicitly declaring them
as 'int'. This results in warings during the build:
ucstr.c: In function `UTF8bvnormalize':
ucstr.c:118: warning: return makes pointer from integer without a cast
ucstr.c:150: warning: return makes pointer from integer without a cast
ucstr.c:171: warning: assignment makes pointer from integer without a cast
ucstr.c: In function `UTF8bvnormcmp':
ucstr.c:353: warning: assignment makes pointer from integer without a cast
ucstr.c:376: warning: assignment makes pointer from integer without a cast
and looks like the reson for the core dump on 64 bit platforms:
<http://www.openldap.org/lists/openldap-software/200307/msg00170.html>
Fix:
--- libraries::liblunicode::ucstr.c.patch begins here ---
--- libraries/liblunicode/ucstr.c.orig Fri Apr 11 03:57:10 2003
+++ libraries/liblunicode/ucstr.c Sat Jul 5 10:53:04 2003
@@ -15,6 +15,8 @@
#include <ldap_utf8.h>
#include <ldap_pvt_uc.h>
+#include "lber_pvt.h"
+
#define malloc(x) ber_memalloc_x(x,ctx)
#define realloc(x,y) ber_memrealloc_x(x,y,ctx)
#define free(x) ber_memfree_x(x,ctx)
--- libraries::liblunicode::ucstr.c.patch ends here ---