Changeset 2506


Ignore:
Timestamp:
23/04/2009 01:38:39 (3 years ago)
Author:
martin
Message:

Fixes for gcc 4.4.

Location:
box/trunk
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • box/trunk/lib/common/Test.cpp

    r2496 r2506  
    417417 
    418418// Wait a given number of seconds for something to complete 
    419 void wait_for_operation(int seconds, char* message) 
     419void wait_for_operation(int seconds, const char* message) 
    420420{ 
    421421        if (Logging::GetGlobalLevel() >= Log::TRACE) 
  • box/trunk/lib/common/Test.h

    r2503 r2506  
    159159 
    160160// Wait a given number of seconds for something to complete 
    161 void wait_for_operation(int seconds, char* message); 
     161void wait_for_operation(int seconds, const char* message); 
    162162void safe_sleep(int seconds); 
    163163 
  • box/trunk/lib/raidfile/RaidFileUtil.h

    r217 r2506  
    3838        } ExistType; 
    3939         
    40         typedef enum 
     40        enum 
    4141        { 
    4242                Stripe1Exists = 1, 
  • box/trunk/lib/server/ServerControl.cpp

    r2294 r2506  
    22 
    33#include <errno.h> 
     4#include <stdio.h> 
    45 
    56#ifdef HAVE_SYS_TYPES_H 
  • box/trunk/test/backupdiff/difftestfiles.cpp

    r217 r2506  
    1111 
    1212#include <string.h> 
     13#include <stdio.h> 
    1314 
    1415#include "FileStream.h" 
  • box/trunk/test/bbackupd/testbbackupd.cpp

    r2501 r2506  
    8888#define TIME_TO_WAIT_FOR_BACKUP_OPERATION       12 
    8989 
    90 void wait_for_backup_operation(char* message) 
     90void wait_for_backup_operation(const char* message) 
    9191{ 
    9292        wait_for_operation(TIME_TO_WAIT_FOR_BACKUP_OPERATION, message); 
  • box/trunk/test/common/testcommon.cpp

    r2415 r2506  
    369369        // Test main() will cleanup after test finishes. 
    370370 
    371         static char *testfilelines[] = 
     371        static const char *testfilelines[] = 
    372372        { 
    373373                "First line", 
  • box/trunk/test/raidfile/testraidfile.cpp

    r2127 r2506  
    1212#include <fcntl.h> 
    1313#include <unistd.h> 
     14#include <stdio.h> 
    1415#include <errno.h> 
    1516 
Note: See TracChangeset for help on using the changeset viewer.