From f414baab33bc07147613258c33798cc226bc5425 Mon Sep 17 00:00:00 2001 From: Brian Norris Date: Wed, 13 Jun 2012 23:55:45 -0700 Subject: [PATCH] snapshot: make other file-scope functions static --- snapshot.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/snapshot.cc b/snapshot.cc index 99b9d79..e9a9783 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); -- 2.34.1