summaryrefslogtreecommitdiffstats
path: root/usr.sbin/vmd/ufs.c
diff options
context:
space:
mode:
authorreyk <reyk@openbsd.org>2016-11-24 08:09:27 +0000
committerreyk <reyk@openbsd.org>2016-11-24 08:09:27 +0000
commitcc0c48ae1c6fdc8da5b1a38e77cd5cc87ea5e434 (patch)
tree73bde3d3ff7d1fad209b7216e1398b94e0aa74ce /usr.sbin/vmd/ufs.c
parentFix a few signedness warnings in our copy of libsa's ufs.c. (diff)
downloadwireguard-openbsd-cc0c48ae1c6fdc8da5b1a38e77cd5cc87ea5e434.tar.xz
wireguard-openbsd-cc0c48ae1c6fdc8da5b1a38e77cd5cc87ea5e434.zip
Better cast for consistency
Diffstat (limited to 'usr.sbin/vmd/ufs.c')
-rw-r--r--usr.sbin/vmd/ufs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/vmd/ufs.c b/usr.sbin/vmd/ufs.c
index 8b70e15b167..6bc8c1e6c4a 100644
--- a/usr.sbin/vmd/ufs.c
+++ b/usr.sbin/vmd/ufs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ufs.c,v 1.2 2016/11/24 08:03:37 reyk Exp $ */
+/* $OpenBSD: ufs.c,v 1.3 2016/11/24 08:09:27 reyk Exp $ */
/* $NetBSD: ufs.c,v 1.16 1996/09/30 16:01:22 ws Exp $ */
/*-
@@ -577,7 +577,7 @@ ufs_read(struct open_file *f, void *start, size_t size, size_t *resid)
int rc = 0;
while (size != 0) {
- if (fp->f_seekp >= (int32_t)fp->f_di.di_size)
+ if ((size_t)fp->f_seekp >= fp->f_di.di_size)
break;
rc = buf_read_file(f, &buf, &buf_size);