constify and make it static.
This commit is contained in:
parent
a3da5d94f3
commit
71f556f70f
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: ofrom.c,v 1.3 2002/03/24 03:37:26 thorpej Exp $ */
|
||||
/* $NetBSD: ofrom.c,v 1.4 2002/06/08 16:44:14 yamt Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright 1998
|
||||
|
@ -73,7 +73,7 @@ ofromprobe(parent, cf, aux)
|
|||
void *aux;
|
||||
{
|
||||
struct ofbus_attach_args *oba = aux;
|
||||
const char *compatible_strings[] = { "rom", NULL };
|
||||
static const char *const compatible_strings[] = { "rom", NULL };
|
||||
|
||||
return (of_compatible(oba->oba_phandle, compatible_strings) == -1) ?
|
||||
0 : 5;
|
||||
|
|
Loading…
Reference in New Issue