-/* $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 $ */
/*-
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 *);
-/* $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 $ */
/*
* 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];