Date: Mon, 11 Jan 2021 15:36:06 GMT From: Roger Pau Monné <royger@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: f713a5b37ecb - main - xen/privcmd: make some integers unsigned Message-ID: <202101111536.10BFa65T026603@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by royger: URL: https://cgit.FreeBSD.org/src/commit/?id=f713a5b37ecb831941dcac0db163e186b5d59638 commit f713a5b37ecb831941dcac0db163e186b5d59638 Author: Roger Pau Monné <royger@FreeBSD.org> AuthorDate: 2021-01-04 18:03:09 +0000 Commit: Roger Pau Monné <royger@FreeBSD.org> CommitDate: 2021-01-11 15:14:59 +0000 xen/privcmd: make some integers unsigned There's no reason for them to be signed. No functional change. Sponsored by: Citrix Systems R&D --- sys/dev/xen/privcmd/privcmd.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sys/dev/xen/privcmd/privcmd.c b/sys/dev/xen/privcmd/privcmd.c index 04dc9e883071..24bce97e9b3d 100644 --- a/sys/dev/xen/privcmd/privcmd.c +++ b/sys/dev/xen/privcmd/privcmd.c @@ -221,7 +221,8 @@ static int privcmd_ioctl(struct cdev *dev, unsigned long cmd, caddr_t arg, int mode, struct thread *td) { - int error, i; + int error; + unsigned int i; switch (cmd) { case IOCTL_PRIVCMD_HYPERCALL: { @@ -263,7 +264,8 @@ privcmd_ioctl(struct cdev *dev, unsigned long cmd, caddr_t arg, struct xen_add_to_physmap_range add; xen_ulong_t *idxs; xen_pfn_t *gpfns; - int *errs, index; + int *errs; + unsigned int index; struct privcmd_map *umap; uint16_t num;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202101111536.10BFa65T026603>