svn commit: samba r8461 - in branches/SAMBA_4_0/source: build/m4 heimdal_build lib/appweb/mpr

tridge at samba.org tridge at samba.org
Thu Jul 14 12:00:32 GMT 2005


Author: tridge
Date: 2005-07-14 12:00:31 +0000 (Thu, 14 Jul 2005)
New Revision: 8461

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=8461

Log:
fixed integer64 handling on bit endian platforms. The ejs code used
%Ld, which is an invalid format code.

This will probably cause problems on systems that don't have %lld, but
do have a working snprintf otherwise. We will need to expand the
snprintf configure test to make sure we replace snprintf on those
platforms

Modified:
   branches/SAMBA_4_0/source/build/m4/rewrite.m4
   branches/SAMBA_4_0/source/heimdal_build/config.h
   branches/SAMBA_4_0/source/lib/appweb/mpr/var.c


Changeset:
Modified: branches/SAMBA_4_0/source/build/m4/rewrite.m4
===================================================================
--- branches/SAMBA_4_0/source/build/m4/rewrite.m4	2005-07-14 09:56:27 UTC (rev 8460)
+++ branches/SAMBA_4_0/source/build/m4/rewrite.m4	2005-07-14 12:00:31 UTC (rev 8461)
@@ -88,6 +88,7 @@
 AC_CHECK_TYPE(offset_t,loff_t)
 AC_CHECK_TYPES(ssize_t)
 AC_CHECK_TYPES(intptr_t)
+AC_CHECK_TYPES(long long)
 
 
 ############################################

Modified: branches/SAMBA_4_0/source/heimdal_build/config.h
===================================================================
--- branches/SAMBA_4_0/source/heimdal_build/config.h	2005-07-14 09:56:27 UTC (rev 8460)
+++ branches/SAMBA_4_0/source/heimdal_build/config.h	2005-07-14 12:00:31 UTC (rev 8461)
@@ -39,7 +39,6 @@
 
 /* these should be done with configure tests */
 #define KRB5
-#define HAVE_LONG_LONG
 
 #include <sys/types.h>
 #include <stdarg.h>

Modified: branches/SAMBA_4_0/source/lib/appweb/mpr/var.c
===================================================================
--- branches/SAMBA_4_0/source/lib/appweb/mpr/var.c	2005-07-14 09:56:27 UTC (rev 8460)
+++ branches/SAMBA_4_0/source/lib/appweb/mpr/var.c	2005-07-14 12:00:31 UTC (rev 8461)
@@ -1658,7 +1658,7 @@
 #if BLD_GOAHEAD_WEBSERVER
 			mprAllocSprintf(out, size, "%d", (int) obj->integer64);
 #else
-			mprAllocSprintf(out, size, "%Ld", obj->integer64);
+			mprAllocSprintf(out, size, "%lld", obj->integer64);
 #endif
 		} else {
 			mprAllocSprintf(out, size, fmt, obj->integer64);



More information about the samba-cvs mailing list