Module Name: src
Committed By: thorpej
Date: Fri Feb 5 00:06:12 UTC 2021
Modified Files:
src/sys/arch/powerpc/powerpc: openfirm.c
Log Message:
s/bootspec/bstr/g to avoid shadowing a global.
To generate a diff of this commit:
cvs rdiff -u -r1.31 -r1.32 src/sys/arch/powerpc/powerpc/openfirm.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/powerpc/powerpc/openfirm.c
diff -u src/sys/arch/powerpc/powerpc/openfirm.c:1.31 src/sys/arch/powerpc/powerpc/openfirm.c:1.32
--- src/sys/arch/powerpc/powerpc/openfirm.c:1.31 Mon Jul 6 09:34:18 2020
+++ src/sys/arch/powerpc/powerpc/openfirm.c Fri Feb 5 00:06:11 2021
@@ -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
#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");