From 92cb1dc12ccc9f20944bf63826d0c98144dd65b2 Mon Sep 17 00:00:00 2001 From: Berke Viktor Date: Sat, 21 Jul 2012 16:16:30 +0200 Subject: Reformat the DNS plugin a bit while we're at it --- plugins/dns/dns.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'plugins/dns/dns.c') diff --git a/plugins/dns/dns.c b/plugins/dns/dns.c index 2bf58195..eb9bb7ee 100644 --- a/plugins/dns/dns.c +++ b/plugins/dns/dns.c @@ -67,9 +67,11 @@ waitline (void *source, char *buf, int bufsize) { len = 1; /* we can't read() here, due to glib's giowin32 */ - if(ph->xchat_read_fd(ph, source, buf + i, &len) != 0) + if (ph->xchat_read_fd (ph, source, buf + i, &len) != 0) + { return -1; - if(buf[i] == '\n' || bufsize == i + 1) + } + if (buf[i] == '\n' || bufsize == i + 1) { buf[i] = 0; return i; -- cgit 1.4.1