[Box Backup-dev] COMMIT r407 - box/chris/win32/vc2005-compile-fixes/lib/backupclient

boxbackup-dev at fluffy.co.uk boxbackup-dev at fluffy.co.uk
Wed Feb 8 00:19:15 GMT 2006


Author: chris
Date: 2006-02-08 00:19:01 +0000 (Wed, 08 Feb 2006)
New Revision: 407

Modified:
   box/chris/win32/vc2005-compile-fixes/lib/backupclient/BackupStoreObjectDump.cpp
Log:
* BackupStoreObjectDump.cpp
- Avoid compiler warnings due to mismatched types in printf


Modified: box/chris/win32/vc2005-compile-fixes/lib/backupclient/BackupStoreObjectDump.cpp
===================================================================
--- box/chris/win32/vc2005-compile-fixes/lib/backupclient/BackupStoreObjectDump.cpp	2006-02-08 00:17:56 UTC (rev 406)
+++ box/chris/win32/vc2005-compile-fixes/lib/backupclient/BackupStoreObjectDump.cpp	2006-02-08 00:19:01 UTC (rev 407)
@@ -96,18 +96,18 @@
 		int depends_l = 0;
 		if((*i)->GetDependsNewer() != 0)
 		{
-#ifdef WIN32
+#ifdef _MSC_VER
 			depends_l += ::sprintf(depends + depends_l, " depNew(%I64x)", (*i)->GetDependsNewer());
 #else
-			depends_l += ::sprintf(depends + depends_l, " depNew(%llx)", (*i)->GetDependsNewer());
+			depends_l += ::sprintf(depends + depends_l, " depNew(%llx)", (long long)((*i)->GetDependsNewer()));
 #endif
 		}
 		if((*i)->GetDependsOlder() != 0)
 		{
-#ifdef WIN32
+#ifdef _MSC_VER
 			depends_l += ::sprintf(depends + depends_l, " depOld(%I64x)", (*i)->GetDependsOlder());
 #else
-			depends_l += ::sprintf(depends + depends_l, " depOld(%llx)", (*i)->GetDependsOlder());
+			depends_l += ::sprintf(depends + depends_l, " depOld(%llx)", (long long)((*i)->GetDependsOlder()));
 #endif
 		}
 




More information about the Boxbackup-dev mailing list