From: ptools Date: Fri, 12 Sep 2003 06:00:50 +0000 (+0000) Subject: minor change to loggen_write() so that its callers are X-Git-Tag: v1.1.0~921 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=bb3526d8a6f342549135ae42101f226a9325432b;p=users%2Fhch%2Fxfstests-dev.git minor change to loggen_write() so that its callers are not giving it a parameter that it is not using. loggen_write should have had a void formal parameter. minor change to loggen_write() so that its callers are not giving it a parameter that it is not using. loggen_write should have had a void formal parameter. --- diff --git a/src/loggen.c b/src/loggen.c index 3dfab9de9..ca3c1ac9a 100644 --- a/src/loggen.c +++ b/src/loggen.c @@ -44,7 +44,7 @@ #include void -usage() +usage(void) { fprintf(stderr,"Usage: loggen\n" " set up parameters before writing record(s):\n" @@ -86,7 +86,7 @@ loggen_alloc(int blocks) } void -loggen_write() +loggen_write(void) { if (!buf) { fprintf(stderr,"no buffer allocated\n"); @@ -108,7 +108,7 @@ loggen_zero(int count) fprintf(stderr," *** zero block (1BB) x %d\n", count); loggen_alloc(1); while (count--) - loggen_write(count); + loggen_write(); } void @@ -166,7 +166,7 @@ loggen_unmount(int count) ASSIGN_ANY_LSN(head->h_lsn, param_cycle, param_block++, ARCH_CONVERT); - loggen_write(count); + loggen_write(); } } @@ -268,7 +268,7 @@ loggen_empty(int count) ASSIGN_ANY_LSN(head->h_lsn, param_cycle, param_block++, ARCH_CONVERT); - loggen_write(count); + loggen_write(); } } @@ -319,5 +319,3 @@ main(int argc, char *argv[]) } return 0; } - -