Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/usermode Take procfs_machdep.c rev 1.4 one step fur...



details:   https://anonhg.NetBSD.org/src/rev/6b4eb8f89912
branches:  trunk
changeset: 336001:6b4eb8f89912
user:      prlw1 <prlw1%NetBSD.org@localhost>
date:      Fri Feb 06 10:25:13 2015 +0000

description:
Take procfs_machdep.c rev 1.4 one step further and adjust signature of
thunk_getcpuinfo().

diffstat:

 sys/arch/usermode/include/thunk.h  |  4 ++--
 sys/arch/usermode/usermode/thunk.c |  6 +++---
 2 files changed, 5 insertions(+), 5 deletions(-)

diffs (45 lines):

diff -r 6590257ce282 -r 6b4eb8f89912 sys/arch/usermode/include/thunk.h
--- a/sys/arch/usermode/include/thunk.h Fri Feb 06 08:37:39 2015 +0000
+++ b/sys/arch/usermode/include/thunk.h Fri Feb 06 10:25:13 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: thunk.h,v 1.61 2012/03/03 21:15:16 reinoud Exp $ */
+/* $NetBSD: thunk.h,v 1.62 2015/02/06 10:25:13 prlw1 Exp $ */
 
 /*-
  * Copyright (c) 2011 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -156,7 +156,7 @@
 char * thunk_getenv(const char *);
 vaddr_t        thunk_get_vm_min_address(void);
 
-int    thunk_getcpuinfo(char *, int *);
+int    thunk_getcpuinfo(char *, size_t *);
 
 int    thunk_getmachine(char *, size_t, char *, size_t);
 
diff -r 6590257ce282 -r 6b4eb8f89912 sys/arch/usermode/usermode/thunk.c
--- a/sys/arch/usermode/usermode/thunk.c        Fri Feb 06 08:37:39 2015 +0000
+++ b/sys/arch/usermode/usermode/thunk.c        Fri Feb 06 10:25:13 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: thunk.c,v 1.84 2013/11/10 19:51:00 jmcneill Exp $ */
+/* $NetBSD: thunk.c,v 1.85 2015/02/06 10:25:13 prlw1 Exp $ */
 
 /*-
  * Copyright (c) 2011 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -28,7 +28,7 @@
 
 #include <sys/cdefs.h>
 #ifdef __NetBSD__
-__RCSID("$NetBSD: thunk.c,v 1.84 2013/11/10 19:51:00 jmcneill Exp $");
+__RCSID("$NetBSD: thunk.c,v 1.85 2015/02/06 10:25:13 prlw1 Exp $");
 #endif
 
 #include <sys/types.h>
@@ -754,7 +754,7 @@
 }
 
 int
-thunk_getcpuinfo(char *cp, int *len)
+thunk_getcpuinfo(char *cp, size_t *len)
 {
        ssize_t rlen;
        int fd;



Home | Main Index | Thread Index | Old Index