diff options
author | Martin Ebourne <martin@ebourne.me.uk> | 2009-04-23 00:38:39 +0000 |
---|---|---|
committer | Martin Ebourne <martin@ebourne.me.uk> | 2009-04-23 00:38:39 +0000 |
commit | b956c955bc474e31f8664af55208440f07b907db (patch) | |
tree | 59127ad955f8c432c4d5cec4036009bb379b4608 /test | |
parent | 775ed79079c3e57374a9b2c919f4617216f21517 (diff) |
Fixes for gcc 4.4.
Diffstat (limited to 'test')
-rw-r--r-- | test/backupdiff/difftestfiles.cpp | 1 | ||||
-rw-r--r-- | test/bbackupd/testbbackupd.cpp | 2 | ||||
-rw-r--r-- | test/common/testcommon.cpp | 2 | ||||
-rw-r--r-- | test/raidfile/testraidfile.cpp | 1 |
4 files changed, 4 insertions, 2 deletions
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 <string.h> +#include <stdio.h> #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 <fcntl.h> #include <unistd.h> +#include <stdio.h> #include <errno.h> #ifdef HAVE_SYSCALL |