From 5ef68b1398fc3ee04d96a824637b6987e00f2e4d Mon Sep 17 00:00:00 2001 From: Jilles Tjoelker Date: Sun, 23 Feb 2014 22:23:00 +0100 Subject: [PATCH] Replace double semicolons with single; place null statement on its own line. No functional change is intended. --- libratbox/src/helper.c | 2 +- libratbox/src/tools.c | 2 +- src/client.c | 2 +- src/match.c | 3 ++- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/libratbox/src/helper.c b/libratbox/src/helper.c index a51fa5db..d30e01a3 100644 --- a/libratbox/src/helper.c +++ b/libratbox/src/helper.c @@ -198,7 +198,7 @@ rb_helper_write_sendq(rb_fde_t *F, void *helper_ptr) if(rb_linebuf_len(&helper->sendq) > 0) { while((retlen = rb_linebuf_flush(F, &helper->sendq)) > 0) - ;; + ; if(retlen == 0 || (retlen < 0 && !rb_ignore_errno(errno))) { rb_helper_restart(helper); diff --git a/libratbox/src/tools.c b/libratbox/src/tools.c index 77d612f0..236a66c8 100644 --- a/libratbox/src/tools.c +++ b/libratbox/src/tools.c @@ -191,7 +191,7 @@ rb_strnlen(const char *s, size_t count) { const char *sc; for(sc = s; count-- && *sc != '\0'; ++sc) - ;; + ; return sc - s; } #else diff --git a/src/client.c b/src/client.c index 13320f66..94f0bfcb 100644 --- a/src/client.c +++ b/src/client.c @@ -162,7 +162,7 @@ make_client(struct Client *from) client_p->localClient->F = NULL; - client_p->preClient = rb_bh_alloc(pclient_heap);; + client_p->preClient = rb_bh_alloc(pclient_heap); /* as good a place as any... */ rb_dlinkAdd(client_p, &client_p->localClient->tnode, &unknown_list); diff --git a/src/match.c b/src/match.c index a9d3a6a2..e58b19c1 100644 --- a/src/match.c +++ b/src/match.c @@ -259,7 +259,8 @@ match_esc(const char *mask, const char *name) return 1; if(quote) return 0; - for(m--; (m > (const unsigned char *)mask) && (*m == '?'); m--);; + for(m--; (m > (const unsigned char *)mask) && (*m == '?'); m--) + ; if(*m == '*' && (m > (const unsigned char *)mask)) return 1;