# HG changeset patch # User Carl Byington # Date 1368819424 25200 # Node ID 306059d0f6779a322488cc02ce1362411fe620bb # Parent d5bb92a8ea258483366b88fab4a84346acc84127 fix missing return statement diff -r d5bb92a8ea25 -r 306059d0f677 src/wflogs-config.cpp --- a/src/wflogs-config.cpp Fri May 17 12:25:14 2013 -0700 +++ b/src/wflogs-config.cpp Fri May 17 12:37:04 2013 -0700 @@ -124,7 +124,7 @@ } -bool CONTEXT::write(char *p) { +void CONTEXT::write(char *p) { // p points to \0 at end of buf, may be destroyed if (failedo()) { openo(false); @@ -275,6 +275,7 @@ CONTEXT *c = *i; rc |= c->read(); } + return rc; } void CONFIG::sleep(int duration, time_t &previous) { diff -r d5bb92a8ea25 -r 306059d0f677 src/wflogs-config.h --- a/src/wflogs-config.h Fri May 17 12:25:14 2013 -0700 +++ b/src/wflogs-config.h Fri May 17 12:37:04 2013 -0700 @@ -60,7 +60,7 @@ void dump(); void openo(bool msg); void open(bool msg); - bool write(char *p); + void write(char *p); bool read(); void closeo(); void close();