From b956c955bc474e31f8664af55208440f07b907db Mon Sep 17 00:00:00 2001 From: Martin Ebourne Date: Thu, 23 Apr 2009 00:38:39 +0000 Subject: Fixes for gcc 4.4. --- test/backupdiff/difftestfiles.cpp | 1 + test/bbackupd/testbbackupd.cpp | 2 +- test/common/testcommon.cpp | 2 +- test/raidfile/testraidfile.cpp | 1 + 4 files changed, 4 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/backupdiff/difftestfiles.cpp b/test/backupdiff/difftestfiles.cpp index 881876ca..33690f6b 100644 --- a/test/backupdiff/difftestfiles.cpp +++ b/test/backupdiff/difftestfiles.cpp @@ -10,6 +10,7 @@ #include "Box.h" #include +#include #include "FileStream.h" #include "PartialReadStream.h" diff --git a/test/bbackupd/testbbackupd.cpp b/test/bbackupd/testbbackupd.cpp index 91c883cc..d69741bb 100644 --- a/test/bbackupd/testbbackupd.cpp +++ b/test/bbackupd/testbbackupd.cpp @@ -87,7 +87,7 @@ // two cycles and a bit #define TIME_TO_WAIT_FOR_BACKUP_OPERATION 12 -void wait_for_backup_operation(char* message) +void wait_for_backup_operation(const char* message) { wait_for_operation(TIME_TO_WAIT_FOR_BACKUP_OPERATION, message); } diff --git a/test/common/testcommon.cpp b/test/common/testcommon.cpp index da2133cd..e633969b 100644 --- a/test/common/testcommon.cpp +++ b/test/common/testcommon.cpp @@ -368,7 +368,7 @@ int test(int argc, const char *argv[]) // Leave timers initialised for rest of test. // Test main() will cleanup after test finishes. - static char *testfilelines[] = + static const char *testfilelines[] = { "First line", "Second line", diff --git a/test/raidfile/testraidfile.cpp b/test/raidfile/testraidfile.cpp index f15fec27..530fb7f8 100644 --- a/test/raidfile/testraidfile.cpp +++ b/test/raidfile/testraidfile.cpp @@ -11,6 +11,7 @@ #include #include +#include #include #ifdef HAVE_SYSCALL -- cgit v1.2.3