Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/powerpc/powerpc Use uintptr_t to convert pointers.
details: https://anonhg.NetBSD.org/src/rev/abad552c9fff
branches: trunk
changeset: 327150:abad552c9fff
user: matt <matt%NetBSD.org@localhost>
date: Fri Feb 28 05:45:26 2014 +0000
description:
Use uintptr_t to convert pointers.
diffstat:
sys/arch/powerpc/powerpc/openfirm.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (34 lines):
diff -r 71165ed70fef -r abad552c9fff sys/arch/powerpc/powerpc/openfirm.c
--- a/sys/arch/powerpc/powerpc/openfirm.c Fri Feb 28 05:44:39 2014 +0000
+++ b/sys/arch/powerpc/powerpc/openfirm.c Fri Feb 28 05:45:26 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: openfirm.c,v 1.23 2014/01/17 09:09:40 mrg Exp $ */
+/* $NetBSD: openfirm.c,v 1.24 2014/02/28 05:45:26 matt Exp $ */
/*
* Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -34,7 +34,7 @@
#include "opt_multiprocessor.h"
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: openfirm.c,v 1.23 2014/01/17 09:09:40 mrg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: openfirm.c,v 1.24 2014/02/28 05:45:26 matt Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -699,13 +699,13 @@
return -1;
ofbcopy(cmd, OF_buf, len + 1);
i = 0;
- args.slots[i] = (uint32_t)OF_buf;
+ args.slots[i] = (uintptr_t)OF_buf;
args.nargs = nargs + 1;
args.nreturns = nreturns + 1;
va_start(ap, nreturns);
i++;
while (i < args.nargs) {
- args.slots[i] = (uint32_t)va_arg(ap, uint32_t *);
+ args.slots[i] = (uintptr_t)va_arg(ap, uint32_t *);
i++;
}
Home |
Main Index |
Thread Index |
Old Index