Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/compat/netbsd32 signed/unsigned comparison.
details: https://anonhg.NetBSD.org/src/rev/b507439c6451
branches: trunk
changeset: 454813:b507439c6451
user: mlelstv <mlelstv%NetBSD.org@localhost>
date: Sat Sep 28 08:21:08 2019 +0000
description:
signed/unsigned comparison.
diffstat:
sys/compat/netbsd32/netbsd32_socket.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r cdcdf742f3d4 -r b507439c6451 sys/compat/netbsd32/netbsd32_socket.c
--- a/sys/compat/netbsd32/netbsd32_socket.c Sat Sep 28 07:42:47 2019 +0000
+++ b/sys/compat/netbsd32/netbsd32_socket.c Sat Sep 28 08:21:08 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: netbsd32_socket.c,v 1.52 2019/09/27 08:17:11 mlelstv Exp $ */
+/* $NetBSD: netbsd32_socket.c,v 1.53 2019/09/28 08:21:08 mlelstv Exp $ */
/*
* Copyright (c) 1998, 2001 Matthew R. Green
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: netbsd32_socket.c,v 1.52 2019/09/27 08:17:11 mlelstv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: netbsd32_socket.c,v 1.53 2019/09/28 08:21:08 mlelstv Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -418,7 +418,7 @@
size_t nclen;
nclen = cidx + cspace;
- if (nclen >= PAGE_SIZE) {
+ if (nclen >= (size_t)PAGE_SIZE) {
error = EINVAL;
goto failure;
}
Home |
Main Index |
Thread Index |
Old Index