diff src/routeflapper.cpp @ 4:180d26aa2a17

Fedora 9 compile and const correctness.
author Carl Byington <carl@five-ten-sg.com>
date Thu, 12 Jun 2008 17:51:33 -0700
parents 4a81cc2da570
children
line wrap: on
line diff
--- a/src/routeflapper.cpp	Thu May 22 20:39:52 2008 -0700
+++ b/src/routeflapper.cpp	Thu Jun 12 17:51:33 2008 -0700
@@ -48,7 +48,7 @@
 ////////////////////////////////////////////////
 // syslog a message
 //
-void my_syslog(char *text)
+void my_syslog(const char *text)
 {
     if (use_syslog) {
         pthread_mutex_lock(&syslog_mutex);
@@ -106,6 +106,7 @@
         if (!loader_run) break;             // ... so we only wait about 3 minutes to terminate
         routing_hourly_update();            // roughly an hour
     }
+    return NULL;
 }
 
 
@@ -125,7 +126,7 @@
         struct stat st;
         bool reload = false;
         for (string_set::iterator i=dc.config_files.begin(); i!=dc.config_files.end(); i++) {
-            char *fn = *i;
+            const char *fn = *i;
             if (stat(fn, &st))           reload = true; // file disappeared
             else if (st.st_mtime > then) reload = true; // file modified
             if (reload) break;