From: Danny Al-Gaaf Date: Wed, 27 Feb 2013 15:48:55 +0000 (+0100) Subject: common/armor.c: reduce scope of some variables X-Git-Tag: v0.59~84^2~14 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=b20d02484166b347fe770a3023baee129eefd1d0;p=ceph.git common/armor.c: reduce scope of some variables Signed-off-by: Danny Al-Gaaf --- diff --git a/src/common/armor.c b/src/common/armor.c index e4b8b86928e5..0fd2c918c278 100644 --- a/src/common/armor.c +++ b/src/common/armor.c @@ -57,14 +57,16 @@ int ceph_armor(char *dst, const char *dst_end, const char *src, const char *end) } while (0); while (src < end) { - unsigned char a, b, c; + unsigned char a; a = *src++; SET_DST(encode_bits(a >> 2)); if (src < end) { + unsigned char b; b = *src++; SET_DST(encode_bits(((a & 3) << 4) | (b >> 4))); if (src < end) { + unsigned char c; c = *src++; SET_DST(encode_bits(((b & 15) << 2) | (c >> 6)));