Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/arch/mips/gen fix lint, should nbytes be changed to...
details: https://anonhg.NetBSD.org/src/rev/3aef3a6017ff
branches: trunk
changeset: 778497:3aef3a6017ff
user: christos <christos%NetBSD.org@localhost>
date: Thu Mar 29 19:26:21 2012 +0000
description:
fix lint, should nbytes be changed to size_t to match with the struct passed?
diffstat:
lib/libc/arch/mips/gen/cacheflush.c | 10 ++++------
1 files changed, 4 insertions(+), 6 deletions(-)
diffs (27 lines):
diff -r 4a35f2d53a27 -r 3aef3a6017ff lib/libc/arch/mips/gen/cacheflush.c
--- a/lib/libc/arch/mips/gen/cacheflush.c Thu Mar 29 18:37:45 2012 +0000
+++ b/lib/libc/arch/mips/gen/cacheflush.c Thu Mar 29 19:26:21 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cacheflush.c,v 1.4 2008/04/28 20:22:56 martin Exp $ */
+/* $NetBSD: cacheflush.c,v 1.5 2012/03/29 19:26:21 christos Exp $ */
/*-
* Copyright (c) 1997 The NetBSD Foundation, Inc.
@@ -34,14 +34,12 @@
#include <mips/sysarch.h>
int
-_cacheflush(addr, nbytes, whichcache)
- void * addr;
- int nbytes, whichcache;
+_cacheflush(void *addr, int nbytes, int whichcache)
{
struct mips_cacheflush_args cfa;
- cfa.va = (vaddr_t) addr;
+ cfa.va = (vaddr_t)(intptr_t)addr;
cfa.nbytes = nbytes;
cfa.whichcache = whichcache;
- return (sysarch(MIPS_CACHEFLUSH, (void *)&cfa));
+ return sysarch(MIPS_CACHEFLUSH, (void *)&cfa);
}
Home |
Main Index |
Thread Index |
Old Index