AMD64 - Refactor uio_resid and size_t assumptions.
[dragonfly.git] / sys / emulation / 43bsd / 43bsd_hostinfo.c
index 35e5d40..4bfb08c 100644 (file)
@@ -317,7 +317,7 @@ sys_ogetkerninfo(struct getkerninfo_args *uap)
        }
        if (error)
                return (error);
-       uap->sysmsg_result = size;
+       uap->sysmsg_iresult = (int)size;
        if (uap->size)
                error = copyout((caddr_t)&size, (caddr_t)uap->size,
                    sizeof(size));