mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
gdbsx: remove cast from ioctl
The ulong type is not defined on FreeBSD, and the cast seems pointless, so just remove it. Signed-off-by: Roger Pau Monné <roger.pau@citrix.com> Cc: Ian Jackson <Ian.Jackson@eu.citrix.com> Acked-by: Ian Campbell <ian.campbell@citrix.com> Acked-by: Mukesh Rathor <mukesh.rathor@oracle.com>
This commit is contained in:
1 parent
282a4c910a
commit
aa14d8b5f2
1 file changed
+2
-2
@@ -180,7 +180,7 @@ _domctl_hcall(uint32_t cmd, /* which domctl hypercall */
|
||||
hypercall.op = __HYPERVISOR_domctl;
|
||||
hypercall.arg[0] = (unsigned long)&domctl;
|
||||
|
||||
rc = ioctl(_dom0_fd, IOCTL_PRIVCMD_HYPERCALL, (ulong)&hypercall);
|
||||
rc = ioctl(_dom0_fd, IOCTL_PRIVCMD_HYPERCALL, &hypercall);
|
||||
if (domctlarg && sz)
|
||||
munlock(domctlarg, sz);
|
||||
return rc;
|
||||
@@ -220,7 +220,7 @@ _check_hyp(int guest_bitness)
|
||||
hypercall.arg[0] = (unsigned long)XENVER_capabilities;
|
||||
hypercall.arg[1] = (unsigned long)&xen_caps;
|
||||
|
||||
rc = ioctl(_dom0_fd, IOCTL_PRIVCMD_HYPERCALL, (ulong)&hypercall);
|
||||
rc = ioctl(_dom0_fd, IOCTL_PRIVCMD_HYPERCALL, &hypercall);
|
||||
munlock(&xen_caps, sizeof(xen_caps));
|
||||
XGTRC("XENCAPS:%s\n", xen_caps);
|
||||
|
||||
|
||||