Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/modules/examples/fopsmapper Avoid comparison between sig...
details: https://anonhg.NetBSD.org/src/rev/1d4e01672e96
branches: trunk
changeset: 970687:1d4e01672e96
user: kamil <kamil%NetBSD.org@localhost>
date: Wed Apr 01 11:45:53 2020 +0000
description:
Avoid comparison between signed and unsigned integer
Cast PAGE_SIZE to size_t.
diffstat:
sys/modules/examples/fopsmapper/fopsmapper.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 632ecf85fc26 -r 1d4e01672e96 sys/modules/examples/fopsmapper/fopsmapper.c
--- a/sys/modules/examples/fopsmapper/fopsmapper.c Wed Apr 01 10:45:44 2020 +0000
+++ b/sys/modules/examples/fopsmapper/fopsmapper.c Wed Apr 01 11:45:53 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fopsmapper.c,v 1.1 2020/04/01 01:57:20 kamil Exp $ */
+/* $NetBSD: fopsmapper.c,v 1.2 2020/04/01 11:45:53 kamil Exp $ */
/*-
* Copyright (c) 2020 The NetBSD Foundation, Inc.
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: fopsmapper.c,v 1.1 2020/04/01 01:57:20 kamil Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fopsmapper.c,v 1.2 2020/04/01 11:45:53 kamil Exp $");
#include <sys/module.h>
#include <sys/param.h>
@@ -115,7 +115,7 @@
if (prot & PROT_EXEC)
return EACCES;
- if (size != PAGE_SIZE)
+ if (size != (size_t)PAGE_SIZE)
return EINVAL;
if ((fo = fp->f_data) == NULL)
Home |
Main Index |
Thread Index |
Old Index