mirror of
https://github.com/matrix-construct/construct
synced 2025-01-16 17:46:54 +01:00
Replace double semicolons with single; place null statement on its own line.
No functional change is intended.
This commit is contained in:
parent
43f45e81fb
commit
5ef68b1398
4 changed files with 5 additions and 4 deletions
|
@ -198,7 +198,7 @@ rb_helper_write_sendq(rb_fde_t *F, void *helper_ptr)
|
||||||
if(rb_linebuf_len(&helper->sendq) > 0)
|
if(rb_linebuf_len(&helper->sendq) > 0)
|
||||||
{
|
{
|
||||||
while((retlen = rb_linebuf_flush(F, &helper->sendq)) > 0)
|
while((retlen = rb_linebuf_flush(F, &helper->sendq)) > 0)
|
||||||
;;
|
;
|
||||||
if(retlen == 0 || (retlen < 0 && !rb_ignore_errno(errno)))
|
if(retlen == 0 || (retlen < 0 && !rb_ignore_errno(errno)))
|
||||||
{
|
{
|
||||||
rb_helper_restart(helper);
|
rb_helper_restart(helper);
|
||||||
|
|
|
@ -191,7 +191,7 @@ rb_strnlen(const char *s, size_t count)
|
||||||
{
|
{
|
||||||
const char *sc;
|
const char *sc;
|
||||||
for(sc = s; count-- && *sc != '\0'; ++sc)
|
for(sc = s; count-- && *sc != '\0'; ++sc)
|
||||||
;;
|
;
|
||||||
return sc - s;
|
return sc - s;
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
|
|
|
@ -162,7 +162,7 @@ make_client(struct Client *from)
|
||||||
|
|
||||||
client_p->localClient->F = NULL;
|
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... */
|
/* as good a place as any... */
|
||||||
rb_dlinkAdd(client_p, &client_p->localClient->tnode, &unknown_list);
|
rb_dlinkAdd(client_p, &client_p->localClient->tnode, &unknown_list);
|
||||||
|
|
|
@ -259,7 +259,8 @@ match_esc(const char *mask, const char *name)
|
||||||
return 1;
|
return 1;
|
||||||
if(quote)
|
if(quote)
|
||||||
return 0;
|
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))
|
if(*m == '*' && (m > (const unsigned char *)mask))
|
||||||
return 1;
|
return 1;
|
||||||
|
|
Loading…
Add table
Reference in a new issue