From: Benjamin Kaduk Date: Fri, 10 Jan 2014 04:57:37 +0000 (-0500) Subject: Add braces to avoid a 'dangling else' warning X-Git-Tag: upstream/1.8.0_pre1^2~831 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=8c937cf95f95581e63df298766f19f14db00a2b9;p=packages%2Fo%2Fopenafs.git Add braces to avoid a 'dangling else' warning Change-Id: I301d7d2473d651002f0bf6baa18906bce6d46497 Reviewed-on: http://gerrit.openafs.org/10700 Tested-by: BuildBot Reviewed-by: Derrick Brashear --- diff --git a/src/tools/dumpscan/xf_printf.c b/src/tools/dumpscan/xf_printf.c index 6c5c9aa9a..76356394c 100644 --- a/src/tools/dumpscan/xf_printf.c +++ b/src/tools/dumpscan/xf_printf.c @@ -457,7 +457,7 @@ vxfprintf(XFILE * X, char *fmt, va_list ap) len = strlen(x); if (haveprec && precision < len) len = precision; - if (altform) + if (altform) { for (y = x; *y; y++) if (isupper(*y)) *y = tolower(*y); @@ -465,6 +465,7 @@ vxfprintf(XFILE * X, char *fmt, va_list ap) for (y = x; *y; y++) if (islower(*y)) *y = toupper(*y); + } } else { UVAL = ntohl(UVAL); if (zfill)