From: Pierangelo Masarati Date: Sat, 6 Oct 2007 15:40:55 +0000 (+0000) Subject: minor cleanup X-Git-Tag: OPENLDAP_REL_ENG_2_4_9~20^2~542 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=6715f737b7a8d7fcde2e6006198ca1595e96c6ae;p=openldap minor cleanup --- 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;