From 93e1625f9fb5f1080c40685488d006b2982062d7 Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Wed, 19 Dec 2018 11:54:47 +0000 Subject: Fix several -Wold-style-declaration warnings Change-Id: Iffe5e652779a13ee7f64696fb5df4a781fe9a632 Signed-off-by: Richard Hughes Reviewed-on: https://review.coreboot.org/c/30404 Tested-by: build bot (Jenkins) Reviewed-by: Angel Pons --- flashrom.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'flashrom.c') diff --git a/flashrom.c b/flashrom.c index 7129a51a7..cb2da46f7 100644 --- a/flashrom.c +++ b/flashrom.c @@ -455,10 +455,10 @@ const struct programmer_entry programmer_table[] = { #define SHUTDOWN_MAXFN 32 static int shutdown_fn_count = 0; /** @private */ -struct shutdown_func_data { +static struct shutdown_func_data { int (*func) (void *data); void *data; -} static shutdown_fn[SHUTDOWN_MAXFN]; +} shutdown_fn[SHUTDOWN_MAXFN]; /* Initialize to 0 to make sure nobody registers a shutdown function before * programmer init. */ -- cgit v1.2.3