]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
ntpq.c:
authorDave Hart <hart@ntp.org>
Sat, 18 Apr 2009 13:51:18 +0000 (13:51 +0000)
committerDave Hart <hart@ntp.org>
Sat, 18 Apr 2009 13:51:18 +0000 (13:51 +0000)
  quiet gcc, msc type warnings from decodeint calls to [hex|oct]toint

bk: 49e9dad6nICFTKCGWUvaZwuGVuunmw

ntpq/ntpq.c

index e58c0046308135d0abd172e1dbfa8cea0f66182f..70be75d9a3be0feaf16996f5784002a8608bc554 100644 (file)
@@ -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);
 }