From: miod Date: Fri, 17 May 2024 20:05:08 +0000 (+0000) Subject: Constify the first argument of getdevunit(). NFCI X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=6dfc32ac7c0a571fa1c58dca43c8775f112f31b3;p=openbsd Constify the first argument of getdevunit(). NFCI --- diff --git a/sys/arch/sparc64/include/autoconf.h b/sys/arch/sparc64/include/autoconf.h index e19caf8d429..9266c175763 100644 --- a/sys/arch/sparc64/include/autoconf.h +++ b/sys/arch/sparc64/include/autoconf.h @@ -1,4 +1,4 @@ -/* $OpenBSD: autoconf.h,v 1.19 2024/03/29 21:06:14 miod Exp $ */ +/* $OpenBSD: autoconf.h,v 1.20 2024/05/17 20:05:08 miod Exp $ */ /* $NetBSD: autoconf.h,v 1.10 2001/07/24 19:32:11 eeh Exp $ */ /*- @@ -150,7 +150,7 @@ void bootstrap(int); int firstchild(int); int nextsibling(int); void callrom(void); -struct device *getdevunit(char *, int); +struct device *getdevunit(const char *, int); int romgetcursoraddr(int **, int **); int findroot(void); int findnode(int, const char *); diff --git a/sys/arch/sparc64/sparc64/autoconf.c b/sys/arch/sparc64/sparc64/autoconf.c index d864f5c05a1..230ded3a5a4 100644 --- a/sys/arch/sparc64/sparc64/autoconf.c +++ b/sys/arch/sparc64/sparc64/autoconf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: autoconf.c,v 1.150 2024/05/13 01:15:50 jsg Exp $ */ +/* $OpenBSD: autoconf.c,v 1.151 2024/05/17 20:05:08 miod Exp $ */ /* $NetBSD: autoconf.c,v 1.51 2001/07/24 19:32:11 eeh Exp $ */ /* @@ -1303,7 +1303,7 @@ callrom(void) * find a device matching "name" and unit number */ struct device * -getdevunit(char *name, int unit) +getdevunit(const char *name, int unit) { struct device *dev = TAILQ_FIRST(&alldevs); char num[10], fullname[16];