From: Brian Norris Date: Thu, 14 Jun 2012 06:55:45 +0000 (-0700) Subject: snapshot: make other file-scope functions static X-Git-Url: http://plrg.eecs.uci.edu/git/?p=c11tester.git;a=commitdiff_plain;h=f414baab33bc07147613258c33798cc226bc5425 snapshot: make other file-scope functions static --- diff --git a/snapshot.cc b/snapshot.cc index 99b9d795..e9a9783b 100644 --- a/snapshot.cc +++ b/snapshot.cc @@ -57,7 +57,7 @@ static void * ReturnPageAlignedAddress(void * addr) { /** The initSnapShotRecord method initialized the snapshotting data * structures for the mprotect based snapshot. */ -void initSnapShotRecord(unsigned int numbackingpages, unsigned int numsnapshots, unsigned int nummemoryregions) { +static void initSnapShotRecord(unsigned int numbackingpages, unsigned int numsnapshots, unsigned int nummemoryregions) { snapshotrecord=( struct SnapShot * )MYMALLOC(sizeof(struct SnapShot)); snapshotrecord->regionsToSnapShot=( struct MemoryRegion * )MYMALLOC(sizeof(struct MemoryRegion)*nummemoryregions); snapshotrecord->backingStoreBasePtr= ( struct SnapShotPage * )MYMALLOC( sizeof( struct SnapShotPage ) * (numbackingpages + 1) ); @@ -77,8 +77,7 @@ void initSnapShotRecord(unsigned int numbackingpages, unsigned int numsnapshots, /** HandlePF is the page fault handler for mprotect based snapshotting * algorithm. */ - -void HandlePF( int sig, siginfo_t *si, void * unused){ +static void HandlePF( int sig, siginfo_t *si, void * unused){ #if USE_MPROTECT_SNAPSHOT if( si->si_code == SEGV_MAPERR ){ printf("Real Fault at %p\n", si->si_addr);