[hackers] [sic] applied Matthias-Christian Ott's remark about trailing newlines || a

From: <hg_AT_suckless.org>
Date: Sat, 14 Feb 2009 11:42:51 +0000 (UTC)

changeset: 95:ea7167a7f415
tag: tip
user: a_AT_null
date: Sat Feb 14 11:42:45 2009 +0000
files: sic.c
description:
applied Matthias-Christian Ott's remark about trailing newlines

diff -r 503b48b13a77 -r ea7167a7f415 sic.c
--- a/sic.c Tue Jul 29 19:22:08 2008 +0100
+++ b/sic.c Sat Feb 14 11:42:45 2009 +0000
@@ -220,23 +220,23 @@
                 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);
                 }
         }
Received on Sat Feb 14 2009 - 11:42:51 UTC

This archive was generated by hypermail 2.2.0 : Sat Feb 14 2009 - 11:48:11 UTC