diff options
author | Berke Viktor <bviktor@hexchat.org> | 2012-07-21 16:16:30 +0200 |
---|---|---|
committer | Berke Viktor <bviktor@hexchat.org> | 2012-07-21 16:16:30 +0200 |
commit | 92cb1dc12ccc9f20944bf63826d0c98144dd65b2 (patch) | |
tree | 75ee76d4bee53911eecc1627cb9937b8d9904831 /plugins | |
parent | d559401c50690c65993b519bb2e28754e46dd179 (diff) |
Reformat the DNS plugin a bit while we're at it
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/dns/dns.c | 6 |
1 files changed, 4 insertions, 2 deletions
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; |