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 mismatch.



details:   https://anonhg.NetBSD.org/src/rev/3776bcfdfc39
branches:  trunk
changeset: 454766:3776bcfdfc39
user:      mlelstv <mlelstv%NetBSD.org@localhost>
date:      Fri Sep 27 08:12:01 2019 +0000

description:
signed/unsigned mismatch.

diffstat:

 sys/compat/netbsd32/netbsd32_socket.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r af7106c0ebde -r 3776bcfdfc39 sys/compat/netbsd32/netbsd32_socket.c
--- a/sys/compat/netbsd32/netbsd32_socket.c     Fri Sep 27 07:20:07 2019 +0000
+++ b/sys/compat/netbsd32/netbsd32_socket.c     Fri Sep 27 08:12:01 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: netbsd32_socket.c,v 1.50 2019/09/26 01:32:09 christos Exp $    */
+/*     $NetBSD: netbsd32_socket.c,v 1.51 2019/09/27 08:12:01 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.50 2019/09/26 01:32:09 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: netbsd32_socket.c,v 1.51 2019/09/27 08:12:01 mlelstv Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -403,7 +403,7 @@
                /*
                 * Sanity check the control message length.
                 */
-               if (cmsg32.cmsg_len > resid ||
+               if (cmsg32.cmsg_len > (size_t)resid ||
                    cmsg32.cmsg_len < sizeof(cmsg32)) {
                        error = EINVAL;
                        goto failure;



Home | Main Index | Thread Index | Old Index