diff --git a/sbin/nvmecontrol/logpage.c b/sbin/nvmecontrol/logpage.c index 9b698a8d845f..dbc0e6b4e789 100644 --- a/sbin/nvmecontrol/logpage.c +++ b/sbin/nvmecontrol/logpage.c @@ -227,7 +227,7 @@ print_log_firmware(void *buf, uint32_t size __unused) } } -struct logpage_function { +static struct logpage_function { uint8_t log_page; print_fn_t fn; } logfuncs[] = { diff --git a/sbin/nvmecontrol/nvmecontrol.c b/sbin/nvmecontrol/nvmecontrol.c index 8dc0e3616580..c7452a127f58 100644 --- a/sbin/nvmecontrol/nvmecontrol.c +++ b/sbin/nvmecontrol/nvmecontrol.c @@ -46,7 +46,7 @@ __FBSDID("$FreeBSD$"); typedef void (*nvme_fn_t)(int argc, char *argv[]); -struct nvme_function { +static struct nvme_function { const char *name; nvme_fn_t fn; const char *usage;