From bb3526d8a6f342549135ae42101f226a9325432b Mon Sep 17 00:00:00 2001 From: ptools Date: Fri, 12 Sep 2003 06:00:50 +0000 Subject: [PATCH] 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. --- src/loggen.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/loggen.c b/src/loggen.c index 3dfab9de..ca3c1ac9 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; } - - -- 2.30.2