]> git.proxmox.com Git - mirror_qemu.git/blobdiff - ui/vnc.c
cutils: Adjust signature of parse_uint[_full]
[mirror_qemu.git] / ui / vnc.c
index 9d8a24dd8a690fd2c7822c2eb9af9c250781c23b..92964dcc0c0a8822af967573c7c8a20565388f8c 100644 (file)
--- a/ui/vnc.c
+++ b/ui/vnc.c
@@ -3728,7 +3728,7 @@ static int vnc_display_get_address(const char *addrstr,
     } else {
         const char *port;
         size_t hostlen;
-        unsigned long long baseport = 0;
+        uint64_t baseport = 0;
         InetSocketAddress *inet;
 
         port = strrchr(addrstr, ':');
@@ -3776,7 +3776,7 @@ static int vnc_display_get_address(const char *addrstr,
             }
         } else {
             int offset = reverse ? 0 : 5900;
-            if (parse_uint_full(port, &baseport, 10) < 0) {
+            if (parse_uint_full(port, 10, &baseport) < 0) {
                 error_setg(errp, "can't convert to a number: %s", port);
                 goto cleanup;
             }