From: Dave Hart Date: Sat, 18 Apr 2009 13:51:18 +0000 (+0000) Subject: ntpq.c: X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e6c7e87172e5c8123750b3c8e511314c6dd67286;p=thirdparty%2Fntp.git ntpq.c: quiet gcc, msc type warnings from decodeint calls to [hex|oct]toint bk: 49e9dad6nICFTKCGWUvaZwuGVuunmw --- diff --git a/ntpq/ntpq.c b/ntpq/ntpq.c index e58c004630..70be75d9a3 100644 --- a/ntpq/ntpq.c +++ b/ntpq/ntpq.c @@ -2058,8 +2058,8 @@ decodeint( { if (*str == '0') { if (*(str+1) == 'x' || *(str+1) == 'X') - return hextoint(str+2, val); - return octtoint(str, val); + return hextoint(str+2, (u_long *)val); + return octtoint(str, (u_long *)val); } return atoint(str, val); }