Use uintptr_t to convert pointers.
This commit is contained in:
parent
ebf2eb8d62
commit
c849674a3b
@ -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 @@ OF_interpret(const char *cmd, int nargs, int nreturns, ...)
|
||||
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++;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user