Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/pad The pad module will now compile with WARNS=5.



details:   https://anonhg.NetBSD.org/src/rev/1d53db63b3af
branches:  trunk
changeset: 355474:1d53db63b3af
user:      nat <nat%NetBSD.org@localhost>
date:      Sun Jul 30 00:50:52 2017 +0000

description:
The pad module will now compile with WARNS=5.

diffstat:

 sys/dev/pad/pad.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r b1e46ac1063d -r 1d53db63b3af sys/dev/pad/pad.c
--- a/sys/dev/pad/pad.c Sun Jul 30 00:47:48 2017 +0000
+++ b/sys/dev/pad/pad.c Sun Jul 30 00:50:52 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pad.c,v 1.41 2017/07/02 13:32:50 nat Exp $ */
+/* $NetBSD: pad.c,v 1.42 2017/07/30 00:50:52 nat Exp $ */
 
 /*-
  * Copyright (c) 2007 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pad.c,v 1.41 2017/07/02 13:32:50 nat Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pad.c,v 1.42 2017/07/30 00:50:52 nat Exp $");
 
 #include <sys/types.h>
 #include <sys/param.h>
@@ -241,7 +241,7 @@
        KASSERT(mutex_owned(&sc->sc_lock));
        KASSERT(pb != NULL);
 
-       if (sc->sc_buflen < blksize)
+       if (sc->sc_buflen < (uint)blksize)
                return ERESTART;
 
        pb->pb_ptr = (sc->sc_audiobuf + sc->sc_rpos);



Home | Main Index | Thread Index | Old Index