Mercurial > wflogs-daemon
comparison src/wflogs-config.cpp @ 8:306059d0f677
fix missing return statement
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Fri, 17 May 2013 12:37:04 -0700 |
parents | a043b7d7269c |
children | 13204eef1a0a |
comparison
equal
deleted
inserted
replaced
7:d5bb92a8ea25 | 8:306059d0f677 |
---|---|
122 } | 122 } |
123 } | 123 } |
124 } | 124 } |
125 | 125 |
126 | 126 |
127 bool CONTEXT::write(char *p) { | 127 void CONTEXT::write(char *p) { |
128 // p points to \0 at end of buf, may be destroyed | 128 // p points to \0 at end of buf, may be destroyed |
129 if (failedo()) { | 129 if (failedo()) { |
130 openo(false); | 130 openo(false); |
131 if (failedo()) return false; | 131 if (failedo()) return false; |
132 } | 132 } |
273 bool rc = false; | 273 bool rc = false; |
274 for (context_list::iterator i=contexts.begin(); i!=contexts.end(); i++) { | 274 for (context_list::iterator i=contexts.begin(); i!=contexts.end(); i++) { |
275 CONTEXT *c = *i; | 275 CONTEXT *c = *i; |
276 rc |= c->read(); | 276 rc |= c->read(); |
277 } | 277 } |
278 return rc; | |
278 } | 279 } |
279 | 280 |
280 void CONFIG::sleep(int duration, time_t &previous) { | 281 void CONFIG::sleep(int duration, time_t &previous) { |
281 ::sleep(duration); | 282 ::sleep(duration); |
282 time_t now = time(NULL); | 283 time_t now = time(NULL); |