From 6715f737b7a8d7fcde2e6006198ca1595e96c6ae Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Sat, 6 Oct 2007 15:40:55 +0000 Subject: [PATCH] minor cleanup --- libraries/liblutil/utils.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/libraries/liblutil/utils.c b/libraries/liblutil/utils.c index 1c6fd0e294..50ab370d25 100644 --- a/libraries/liblutil/utils.c +++ b/libraries/liblutil/utils.c @@ -677,13 +677,15 @@ lutil_str2bin( struct berval *in, struct berval *out ) pout = out->bv_val; /* Leading "0x" for hex input */ if ( in->bv_len > 2 && in->bv_val[0] == '0' && - ( in->bv_val[1] == 'x' || in->bv_val[1] == 'X' )) { + ( in->bv_val[1] == 'x' || in->bv_val[1] == 'X' ) ) + { len = in->bv_len - 2; pin = in->bv_val + 2; hex = 1; } else if ( in->bv_len > 3 && in->bv_val[0] == '\'' && - ( in->bv_val[in->bv_len-2] == '\'' && - in->bv_val[in->bv_len-1] == 'H' )) { + in->bv_val[in->bv_len-2] == '\'' && + in->bv_val[in->bv_len-1] == 'H' ) + { len = in->bv_len - 3; pin = in->bv_val + 1; hex = 1; -- 2.39.5