sic

simple irc client
git clone git://git.suckless.org/sic
Log | Files | Refs | README | LICENSE

commit f3827eec2a299cb0a556f9db12206e97d0f6e390
parent 8b2eeee541044627d2f3ccb0ad9275d92cb1e5fd
Author: a@null <unknown>
Date:   Sat, 14 Feb 2009 11:42:45 +0000

applied Matthias-Christian Ott's remark about trailing newlines
Diffstat:
sic.c | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/sic.c b/sic.c @@ -220,23 +220,23 @@ main(int argc, char *argv[]) { if(i < 0) { if(errno == EINTR) continue; - die("error: error on select()"); + die("error: error on select()\n"); } else if(i == 0) { if(time(NULL) - trespond >= PINGTIMEOUT) - die("error: sic shutting down: parse timeout"); + die("error: sic shutting down: parse timeout\n"); write(srv, ping, strlen(ping)); continue; } if(FD_ISSET(srv, &rd)) { if(readl(srv, sizeof bufin, bufin) == -1) - die("error: remote host closed connection"); + die("error: remote host closed connection\n"); parsesrv(bufin); trespond = time(NULL); } if(FD_ISSET(0, &rd)) { if(readl(0, sizeof bufin, bufin) == -1) - die("error: broken pipe"); + die("error: broken pipe\n"); parsein(bufin); } }