snapshot-interface: don't export SnapshotGlobalSegments()
authorBrian Norris <banorris@uci.edu>
Thu, 14 Jun 2012 06:20:43 +0000 (23:20 -0700)
committerBrian Norris <banorris@uci.edu>
Thu, 14 Jun 2012 06:20:43 +0000 (23:20 -0700)
SnapshotGlobalSegments() is only used within snapshot-interface.cc, so declare
it static and remove it from the header.

snapshot-interface.cc
snapshot-interface.h

index c88e65ae5a5d4a0b35a9bbd9eebd5b0744442bfb..baedf4753a806b5ac47b8079f9227dba4bce3706 100644 (file)
@@ -25,8 +25,7 @@ SnapshotStack * snapshotObject;
  *     that may contain globals and then configures the snapshotting
  *     library to snapshot them.
  */
-
-void SnapshotGlobalSegments(){
+static void SnapshotGlobalSegments(){
        int pid = getpid();
        char buf[9000], execname[100];
        FILE *map;
@@ -75,7 +74,7 @@ void SnapshotGlobalSegments(){
  *     that may contain globals and then configures the snapshotting
  *     library to snapshot them.
  */
-void SnapshotGlobalSegments(){
+static void SnapshotGlobalSegments(){
        int pid = getpid();
        char buf[9000], filename[100];
        FILE *map;
index 1c4c32b0339c574bc7bde31096a78c2fec3a5932..48fa2e3e0915247f6baece67fa46c62d5f21e7cb 100644 (file)
@@ -15,8 +15,6 @@ void initSnapShotLibrary(unsigned int numbackingpages,
                unsigned int numheappages, VoidFuncPtr entryPoint);
 void finalize();
 
-void SnapshotGlobalSegments();
-
 struct stackEntry {
   struct stackEntry *next;
   snapshot_id snapshotid;