From 96b4f4be970b16238aba84be7dcef9f5c09c3496 Mon Sep 17 00:00:00 2001 From: Simon Wilkinson Date: Wed, 13 Jul 2011 14:02:03 +0100 Subject: [PATCH] scout: Remove unused error codes Remove unused error returns, and make gcc 4.6.0 a little bit happier Change-Id: Ic1fe541ed860a739ac3e2aa2978cbb8b92ec1a8d Reviewed-on: http://gerrit.openafs.org/4995 Tested-by: BuildBot Reviewed-by: Derrick Brashear --- src/scout/scout.c | 31 +++++++++++++++---------------- 1 file changed, 15 insertions(+), 16 deletions(-) diff --git a/src/scout/scout.c b/src/scout/scout.c index 31a98900d..b65865d31 100644 --- a/src/scout/scout.c +++ b/src/scout/scout.c @@ -1021,7 +1021,6 @@ mini_PrintDiskStats(struct mini_line *a_srvline, { /*mini_PrintDiskStats */ static char rn[] = "mini_PrintDiskStats"; /*Routine name */ - int code; /*Return code */ char s[128]; /*String buffer */ struct onode *curr_disklight; /*Ptr to current disk light */ struct onode *srvname_light; /*Ptr to server name light */ @@ -1077,13 +1076,13 @@ mini_PrintDiskStats(struct mini_line *a_srvline, used_disk_idx, diskdata->label); fflush(scout_debugfd); } - code = mini_justify(" ", /*Src buffer */ - diskdata->label, /*Dest buffer */ - scout_col_width[COL_DISK], /*Dest's width */ - SCOUT_RIGHT_JUSTIFY, /*Right-justify */ - SCOUT_LEFT_TRUNC, /*Left-truncate */ - SCOUT_ISNT_LDISK); /*Not a labeled disk */ - code = gator_light_set(curr_disklight, 0); + mini_justify(" ", /*Src buffer */ + diskdata->label, /*Dest buffer */ + scout_col_width[COL_DISK], /*Dest's width */ + SCOUT_RIGHT_JUSTIFY, /*Right-justify */ + SCOUT_LEFT_TRUNC, /*Left-truncate */ + SCOUT_ISNT_LDISK); /*Not a labeled disk */ + gator_light_set(curr_disklight, 0); if (a_fix_line_num) { curr_disklight->o_y += a_delta_line_num; disk_strparams = (struct gwin_strparams *)(diskdata->llrock); @@ -1189,14 +1188,14 @@ mini_PrintDiskStats(struct mini_line *a_srvline, rn, s, found_idx, diskdata->label); fflush(scout_debugfd); } - code = mini_justify(s, /*Src buffer */ - diskdata->label, /*Dest buffer */ - scout_col_width[COL_DISK], /*Dest's width */ - SCOUT_LEFT_JUSTIFY, /*Left-justify */ - SCOUT_LEFT_TRUNC, /*Left-truncate */ - SCOUT_IS_LDISK); /*Labeled disk */ - - code = gator_light_set(sc_disk->disk_lp, pastthreshold); + mini_justify(s, /*Src buffer */ + diskdata->label, /*Dest buffer */ + scout_col_width[COL_DISK], /*Dest's width */ + SCOUT_LEFT_JUSTIFY, /*Left-justify */ + SCOUT_LEFT_TRUNC, /*Left-truncate */ + SCOUT_IS_LDISK); /*Labeled disk */ + + gator_light_set(sc_disk->disk_lp, pastthreshold); } /*Found disk record */ } -- 2.39.5