Mercurial > syslog2iptables
comparison src/syslog2iptables.cpp @ 59:f133196b8591
fix c++11 compiler warnings
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Tue, 10 Jun 2014 09:03:08 -0700 |
parents | ba0259c9e411 |
children |
comparison
equal
deleted
inserted
replaced
58:b45dddebe8fc | 59:f133196b8591 |
---|---|
89 // thread to watch the old config files for changes | 89 // thread to watch the old config files for changes |
90 // and reload when needed. | 90 // and reload when needed. |
91 // | 91 // |
92 void* config_loader(void *arg); | 92 void* config_loader(void *arg); |
93 void* config_loader(void *arg) { | 93 void* config_loader(void *arg) { |
94 typedef set<CONFIG *> configp_set; | |
95 while (loader_run) { | 94 while (loader_run) { |
96 sleep(180); // look for modifications every 3 minutes | 95 sleep(180); // look for modifications every 3 minutes |
97 if (!loader_run) break; | 96 if (!loader_run) break; |
98 CONFIG &dc = *config; | 97 CONFIG &dc = *config; |
99 time_t then = dc.load_time; | 98 time_t then = dc.load_time; |