From 3423c1d92f2c40bce048714aa4494c761ccf3538 Mon Sep 17 00:00:00 2001 From: Zdenek Styblik Date: Wed, 25 Jan 2012 15:09:49 +0000 Subject: [PATCH] 'lib/helper.c' - str2uchar() - renamed arg_long -> arg_ulong --- ipmitool/lib/helper.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ipmitool/lib/helper.c b/ipmitool/lib/helper.c index 9bf5fe5..85cbe56 100644 --- a/ipmitool/lib/helper.c +++ b/ipmitool/lib/helper.c @@ -282,16 +282,16 @@ int str2ushort(const char * str, uint16_t * ushrt_ptr) int str2uchar(const char * str, uint8_t * uchr_ptr) { int rc = (-3); - int64_t arg_long = 0; - if ( (rc = str2ulong(str, &arg_long)) != 0 ) { + int64_t arg_ulong = 0; + if ( (rc = str2ulong(str, &arg_ulong)) != 0 ) { *uchr_ptr = 0; return rc; } - if (arg_long > UINT8_MAX) + if (arg_ulong > UINT8_MAX) return (-3); - *uchr_ptr = (uint8_t)arg_long; + *uchr_ptr = (uint8_t)arg_ulong; return 0; } /* str2uchar(...) */