[Box Backup-commit] COMMIT r2050 - box/trunk/lib/common

boxbackup-dev at fluffy.co.uk boxbackup-dev at fluffy.co.uk
Tue Jan 22 00:52:01 GMT 2008


Author: chris
Date: 2008-01-22 00:52:00 +0000 (Tue, 22 Jan 2008)
New Revision: 2050

Modified:
   box/trunk/lib/common/Box.h
Log:
Use const char pointers to silence sun CC warnings.


Modified: box/trunk/lib/common/Box.h
===================================================================
--- box/trunk/lib/common/Box.h	2008-01-21 09:35:00 UTC (rev 2049)
+++ box/trunk/lib/common/Box.h	2008-01-22 00:52:00 UTC (rev 2050)
@@ -40,7 +40,7 @@
 	
 	extern bool AssertFailuresToSyslog;
 	#define ASSERT_FAILS_TO_SYSLOG_ON {AssertFailuresToSyslog = true;}
-	void BoxDebugAssertFailed(char *cond, char *file, int line);
+	void BoxDebugAssertFailed(const char *cond, const char *file, int line);
 	#define ASSERT(cond) {if(!(cond)) {BoxDebugAssertFailed(#cond, __FILE__, __LINE__); THROW_EXCEPTION(CommonException, AssertFailed)}}
 
 	// Note that syslog tracing is independent of BoxDebugTraceOn, but stdout tracing is not




More information about the Boxbackup-commit mailing list