summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorthorpej <thorpej@NetBSD.org>2021-02-05 00:06:11 +0000
committerthorpej <thorpej@NetBSD.org>2021-02-05 00:06:11 +0000
commitf0fc6be2d57b614fdaaedf12c3d8e2b62bb71be4 (patch)
tree2c53714e17677b42b8c4d93a4b7036eb606a5350 /sys
parent34667f4d682eab6e20f5b5b61f0e43e126d39573 (diff)
s/bootspec/bstr/g to avoid shadowing a global.
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/powerpc/powerpc/openfirm.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/arch/powerpc/powerpc/openfirm.c b/sys/arch/powerpc/powerpc/openfirm.c
index f660ab6686c..6796d94718f 100644
--- a/sys/arch/powerpc/powerpc/openfirm.c
+++ b/sys/arch/powerpc/powerpc/openfirm.c
@@ -1,4 +1,4 @@
-/* $NetBSD: openfirm.c,v 1.31 2020/07/06 09:34:18 rin Exp $ */
+/* $NetBSD: openfirm.c,v 1.32 2021/02/05 00:06:11 thorpej Exp $ */
/*
* Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -32,7 +32,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: openfirm.c,v 1.31 2020/07/06 09:34:18 rin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: openfirm.c,v 1.32 2021/02/05 00:06:11 thorpej Exp $");
#ifdef _KERNEL_OPT
#include "opt_multiprocessor.h"
@@ -603,7 +603,7 @@ OF_start_cpu(int phandle, u_int pc, int arg)
#endif
void
-OF_boot(const char *bootspec)
+OF_boot(const char *bstr)
{
static struct {
const char *name;
@@ -617,10 +617,10 @@ OF_boot(const char *bootspec)
};
int l;
- if ((l = strlen(bootspec)) >= PAGE_SIZE)
+ if ((l = strlen(bstr)) >= PAGE_SIZE)
panic("OF_boot");
ofw_stack();
- ofbcopy(bootspec, OF_buf, l + 1);
+ ofbcopy(bstr, OF_buf, l + 1);
args.bootspec = OF_buf;
openfirmware(&args);
panic("OF_boot didn't");