From 19dee933a0ca1d824edb697e43f29628cce06f55 Mon Sep 17 00:00:00 2001 From: Marc Dionne Date: Wed, 26 May 2010 17:50:43 -0400 Subject: [PATCH] scout.c: only declare width once The width variable was declared twice, for the whole function and also within the for loop, leaving the first one unused and triggering a warning and a failed build with enable-checking. Change-Id: Idd061aa0e9eff1f158bfdbd67a20fe5876570089 Reviewed-on: http://gerrit.openafs.org/2039 Reviewed-by: Russ Allbery Tested-by: Russ Allbery --- src/scout/scout.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scout/scout.c b/src/scout/scout.c index ccfe82b18..b17a857e0 100644 --- a/src/scout/scout.c +++ b/src/scout/scout.c @@ -2203,7 +2203,7 @@ scout_SetColumnWidths(struct cmd_item *a_width_item) int num_cols = sizeof(scout_col_width) / sizeof(*scout_col_width); for (i = 0; a_width_item && i < num_cols; i++) { - int width = atoi(a_width_item->data); + width = atoi(a_width_item->data); if (width > 0) { int min_width = strlen(scout_underline[i]); if (min_width) { -- 2.39.5