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 s/bootspec/bstr/g to avoid shadowin...
details: https://anonhg.NetBSD.org/src/rev/897981abcf42
branches: trunk
changeset: 951519:897981abcf42
user: thorpej <thorpej%NetBSD.org@localhost>
date: Fri Feb 05 00:06:11 2021 +0000
description:
s/bootspec/bstr/g to avoid shadowing a global.
diffstat:
sys/arch/powerpc/powerpc/openfirm.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (40 lines):
diff -r 60b2e1b130da -r 897981abcf42 sys/arch/powerpc/powerpc/openfirm.c
--- a/sys/arch/powerpc/powerpc/openfirm.c Thu Feb 04 23:59:46 2021 +0000
+++ b/sys/arch/powerpc/powerpc/openfirm.c Fri Feb 05 00:06:11 2021 +0000
@@ -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 @@
#endif
void
-OF_boot(const char *bootspec)
+OF_boot(const char *bstr)
{
static struct {
const char *name;
@@ -617,10 +617,10 @@
};
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");
Home |
Main Index |
Thread Index |
Old Index