From: a@null Date: Sat, 14 Feb 2009 11:42:45 +0000 (+0000) Subject: applied Matthias-Christian Ott's remark about trailing newlines X-Git-Url: https://git.armaanb.net/?p=sic.git;a=commitdiff_plain;h=f3827eec2a299cb0a556f9db12206e97d0f6e390 applied Matthias-Christian Ott's remark about trailing newlines --- diff --git a/sic.c b/sic.c index 059ad9a..48933ae 100644 --- 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); } }