Mercurial > wflogs-daemon
comparison src/wflogs-config.cpp @ 9:13204eef1a0a
fix missing return statement
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Fri, 17 May 2013 12:40:05 -0700 |
parents | 306059d0f677 |
children |
comparison
equal
deleted
inserted
replaced
8:306059d0f677 | 9:13204eef1a0a |
---|---|
126 | 126 |
127 void 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; |
132 } | 132 } |
133 *p = '\n'; | 133 *p = '\n'; |
134 ::write(fdo, buf, p-buf+1); | 134 ::write(fdo, buf, p-buf+1); |
135 } | 135 } |
136 | 136 |