/*
* Author: Thomas E. Dickey
*
- * $Id: test_tparm.c,v 1.17 2021/03/06 23:39:14 tom Exp $
+ * $Id: test_tparm.c,v 1.20 2021/03/20 15:58:32 tom Exp $
*
* Exercise tparm, either for all possible capabilities with fixed parameters,
* or one capability with all possible parameters.
#define USE_TINFO
#include <test.priv.h>
-static void failed(const char *) GCC_NORETURN;
+static GCC_NORETURN void failed(const char *);
static void
failed(const char *msg)
r_opt = 1;
if (a_opt) {
- for (n = 0; n < use_parms; ++n)
+ for (n = 0; n < max_parms; ++n)
if (num_parms[n])
use_parms *= (num_parms[n] + 1);
}
all_terms[t_run]);
}
+ memset(all_parms, 0, sizeof(all_parms));
if (a_opt) {
/* for each combination of values */
- memset(all_parms, 0, sizeof(all_parms));
do {
for (n_run = 0; n_run < use_caps; ++n_run) {
test_tparm(cap_name[n_run], cap_data[n_run], all_parms);