[spinel] fix missing prototype warning (#6245)

This function was defined without any declaration before it, causing
build error when compiled with -Werror=missing-prototypes.
This commit is contained in:
Moandor
2021-03-08 10:10:07 -08:00
committed by GitHub
parent 7deab4a916
commit 46d3a4b7ec
+1 -1
View File
@@ -1158,7 +1158,7 @@ struct spinel_cstr
(uint32_t) PREFIX##VALUE, #VALUE \
}
const char *spinel_to_cstr(const struct spinel_cstr *table, uint32_t val)
static const char *spinel_to_cstr(const struct spinel_cstr *table, uint32_t val)
{
int i;