[Fedora-directory-commits] ldapserver/ldap/servers/slapd dse.c, 1.10, 1.11
Richard Allen Megginson
rmeggins at fedoraproject.org
Fri Oct 17 16:54:49 UTC 2008
- Previous message (by thread): [Fedora-directory-commits] ldapserver Makefile.am, 1.72, 1.73 aclocal.m4, 1.73, 1.74 configure, 1.90, 1.91 missing, 1.55, 1.56 install-sh, 1.55, 1.56 depcomp, 1.55, 1.56 compile, 1.50, 1.51 Makefile.in, 1.95, 1.96 config.sub, 1.54, 1.55 config.guess, 1.54, 1.55
- Next message (by thread): [Fedora-directory-commits] ldapserver/ldap/servers/slapd/back-ldbm dblayer.c, 1.30, 1.31 import-merge.c, 1.10, 1.11 import-threads.c, 1.17, 1.18 import.c, 1.13, 1.14 ldbm_config.c, 1.15, 1.16 ldif2ldbm.c, 1.19, 1.20 monitor.c, 1.9, 1.10 parents.c, 1.6, 1.7
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: rmeggins
Update of /cvs/dirsec/ldapserver/ldap/servers/slapd
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv16120/ldapserver/ldap/servers/slapd
Modified Files:
dse.c
Log Message:
Resolves: bug 454030
Bug Description: Need to address 64-bit compiler warnings
Fix Description: As it turns out, there is no portable format specifier
for size_t that works on all of our supported platforms. Afaict, %lu should
work everywhere. C99 uses the "z" specifier, but alas not all of the compilers
we use support C99 and/or "z".
Platforms tested: RHEL5, Solaris
Flag Day: no
Doc impact: no
Index: dse.c
===================================================================
RCS file: /cvs/dirsec/ldapserver/ldap/servers/slapd/dse.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- dse.c 8 Oct 2008 17:29:03 -0000 1.10
+++ dse.c 17 Oct 2008 16:54:47 -0000 1.11
@@ -72,13 +72,6 @@
#include <pwd.h>
#endif /* _WIN32 */
-/* Required to get portable printf/scanf format macros */
-#ifdef HAVE_INTTYPES_H
-#include <inttypes.h>
-#else
-#error Need to define portable format macros such as PRIu64
-#endif /* HAVE_INTTYPES_H */
-
/* #define SLAPI_DSE_DEBUG */ /* define this to force trace log */
/* messages to always be logged */
@@ -612,7 +605,7 @@
struct berval val;
vals[0] = &val;
vals[1] = NULL;
- sprintf(value_buffer,"%" PRIuPTR,current_sub_count);
+ sprintf(value_buffer,"%lu",current_sub_count);
val.bv_val = value_buffer;
val.bv_len = strlen (val.bv_val);
switch(mod_op)
- Previous message (by thread): [Fedora-directory-commits] ldapserver Makefile.am, 1.72, 1.73 aclocal.m4, 1.73, 1.74 configure, 1.90, 1.91 missing, 1.55, 1.56 install-sh, 1.55, 1.56 depcomp, 1.55, 1.56 compile, 1.50, 1.51 Makefile.in, 1.95, 1.96 config.sub, 1.54, 1.55 config.guess, 1.54, 1.55
- Next message (by thread): [Fedora-directory-commits] ldapserver/ldap/servers/slapd/back-ldbm dblayer.c, 1.30, 1.31 import-merge.c, 1.10, 1.11 import-threads.c, 1.17, 1.18 import.c, 1.13, 1.14 ldbm_config.c, 1.15, 1.16 ldif2ldbm.c, 1.19, 1.20 monitor.c, 1.9, 1.10 parents.c, 1.6, 1.7
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Fedora-directory-commits
mailing list