Module Name: src
Committed By: christos
Date: Thu Mar 29 19:26:21 UTC 2012
Modified Files:
src/lib/libc/arch/mips/gen: cacheflush.c
Log Message:
fix lint, should nbytes be changed to size_t to match with the struct passed?
To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/lib/libc/arch/mips/gen/cacheflush.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/lib/libc/arch/mips/gen/cacheflush.c
diff -u src/lib/libc/arch/mips/gen/cacheflush.c:1.4 src/lib/libc/arch/mips/gen/cacheflush.c:1.5
--- src/lib/libc/arch/mips/gen/cacheflush.c:1.4 Mon Apr 28 16:22:56 2008
+++ src/lib/libc/arch/mips/gen/cacheflush.c Thu Mar 29 15:26:21 2012
@@ -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);
}