X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/disorder/blobdiff_plain/92db088e5b292c1180a090ed369b9851e933e610..05b3f1f69c02a260bb8315dcedd60d35daf1875c:/lib/client.c?ds=inline diff --git a/lib/client.c b/lib/client.c index 08d70e7..7ae0d07 100644 --- a/lib/client.c +++ b/lib/client.c @@ -231,11 +231,12 @@ static int disorder_simple_v(disorder_client *c, } else if(arg == disorder__list) { char **list = va_arg(ap, char **); int nlist = va_arg(ap, int); + int n; if(nlist < 0) { for(nlist = 0; list[nlist]; ++nlist) ; } - for(int n = 0; n < nlist; ++n) { + for(n = 0; n < nlist; ++n) { dynstr_append(&d, ' '); dynstr_append_string(&d, quoteutf8(arg)); } @@ -263,10 +264,11 @@ static int disorder_simple_v(disorder_client *c, goto write_error; xfree(d.vec); if(has_body) { + int n; if(nbody < 0) for(nbody = 0; body[nbody]; ++nbody) ; - for(int n = 0; n < nbody; ++n) { + for(n = 0; n < nbody; ++n) { if(body[n][0] == '.') if(fputc('.', c->fpout) < 0) goto write_error;