circo

claudio's IRC oasis
git clone git://git.bitsmanent.org/circo
Log | Files | Refs | README | LICENSE

commit dd165303bc878630e80f0b6b3547290ca9784d87
parent b2d965211a4ce6ef20ac6349c1322ded534b6ae3
Author: Claudio Alessi <smoppy@gmail.com>
Date:   Wed, 18 Apr 2018 20:06:29 +0200

Declare *b at the top of the function.

Diffstat:
Mcirco.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/circo.c b/circo.c @@ -1071,6 +1071,7 @@ usrin(void) { int main(int argc, char *argv[]) { + Buffer *b; struct timeval tv; fd_set rd; int n, nfds; @@ -1131,7 +1132,7 @@ main(int argc, char *argv[]) { if(fgets(bufin, sizeof bufin, srv) == NULL) { srv = NULL; bprintf(sel, "Remote host closed connection.\n"); - for(Buffer *b = buffers; b; b = b->next) + for(b = buffers; b; b = b->next) bprintf(b, "Remote host closed connection.\n"); } else