From: Marc Dionne Date: Sat, 7 Apr 2012 14:11:14 +0000 (-0400) Subject: tools: return error code in xfclose X-Git-Tag: upstream/1.8.0_pre1^2~2581 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=9037358b6a49d45ba8170a1d71de8b7c678d4f0f;p=packages%2Fo%2Fopenafs.git tools: return error code in xfclose The code variable takes the return code from do_close, but is then unused. Return its value instead of systematically returning 0, avoiding an unused variable warning. Change-Id: I831b5b81721400ee08106d2ecdbf2b7b8e126348 Reviewed-on: http://gerrit.openafs.org/7123 Reviewed-by: Derrick Brashear Tested-by: BuildBot Reviewed-by: Simon Wilkinson --- diff --git a/src/tools/xfiles.c b/src/tools/xfiles.c index 806bd78a9..527f89b1a 100644 --- a/src/tools/xfiles.c +++ b/src/tools/xfiles.c @@ -189,7 +189,7 @@ xfclose(XFILE * X) if (X->do_close) code = (X->do_close) (X); memset(X, 0, sizeof(*X)); - return 0; + return code; }