From 6df9ad5d42245d017dbdb8247b65aceab2a82c28 Mon Sep 17 00:00:00 2001 From: Kenneth R Westerback Date: Thu, 28 Aug 2003 02:24:05 +0000 Subject: Fix use of uninitialized variable by porting NetBSD patch to correctly initialize it. Said variable is used as the value of the define DOWNLOAD_CONST_COUNT in the generated file aic7xxxreg.h. This define is currently not used anywhere. Spotted and ok mickey@. --- sys/dev/microcode/aic7xxx/aicasm_symbol.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'sys/dev') diff --git a/sys/dev/microcode/aic7xxx/aicasm_symbol.c b/sys/dev/microcode/aic7xxx/aicasm_symbol.c index 72104ffb4e1..1893e050405 100644 --- a/sys/dev/microcode/aic7xxx/aicasm_symbol.c +++ b/sys/dev/microcode/aic7xxx/aicasm_symbol.c @@ -1,4 +1,4 @@ -/* $OpenBSD: aicasm_symbol.c,v 1.6 2002/11/19 18:36:18 jason Exp $ */ +/* $OpenBSD: aicasm_symbol.c,v 1.7 2003/08/28 02:24:04 krw Exp $ */ /* * Aic7xxx SCSI host adapter firmware asssembler symbol table implementation * @@ -474,8 +474,7 @@ symtable_dump(ofile) fprintf(ofile, "\n\n/* Downloaded Constant Definitions */\n"); - while (SLIST_FIRST(&download_constants) != - SLIST_END(&download_constants)) { + for (i = 0; SLIST_FIRST(&download_constants) != NULL; i++) { symbol_node_t *curnode; curnode = SLIST_FIRST(&download_constants); -- cgit v1.2.3