From a349b8220dfd382c719c0807bbd7873cefbcbf0b Mon Sep 17 00:00:00 2001 From: David Lawrence Date: Sun, 14 May 2000 03:58:15 +0000 Subject: [PATCH] line 89: remark(1693): unprototyped function redeclared with prototype line 684: remark(1692): prototyped function redeclared without prototype line 700: remark(1692): prototyped function redeclared without prototype Prototypes fixed. line 331: remark(1552): variable "n" was set but never used. Variable removed. --- lib/tests/t_api.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/lib/tests/t_api.c b/lib/tests/t_api.c index 751ecf3190..d72b7cc290 100644 --- a/lib/tests/t_api.c +++ b/lib/tests/t_api.c @@ -81,7 +81,7 @@ static int t_putinfo(const char *key, const char *info); static char *t_getdate(char *buf, size_t buflen); static void printhelp(void); static void printusage(void); -static void t_sighandler(); +static void t_sighandler(void); static int T_int; @@ -328,7 +328,6 @@ main(int argc, char **argv) { void t_assert(const char *component, int anum, int class, const char *what, ...) { - int n; va_list args; (void)printf("T:%s:%d:%s\n", component, anum, class == T_REQUIRED ? @@ -338,7 +337,7 @@ t_assert(const char *component, int anum, int class, const char *what, ...) { * Format text to a buffer. */ va_start(args, what); - n = vsprintf(T_buf, what, args); + (void)vsprintf(T_buf, what, args); va_end(args); (void)t_putinfo("A", T_buf); @@ -681,7 +680,7 @@ t_bustline(char *line, char **toks) { } static void -printhelp() { +printhelp(void) { int cnt; testspec_t *pts; @@ -697,7 +696,7 @@ printhelp() { } static void -printusage() { +printusage(void) { printf("Usage:\n%s\n", Usage); }