From 667baad59c7c274b2a68a7e46022d6e508d6672e Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Fri, 22 Apr 2011 00:05:43 +0200 Subject: [PATCH] Make some variables static. Found by sparse. --- grab_client.c | 4 ++-- gui_theme.c | 2 +- imdct.c | 2 +- wmadec_filter.c | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/grab_client.c b/grab_client.c index de6df6df..a85e42a9 100644 --- a/grab_client.c +++ b/grab_client.c @@ -62,9 +62,9 @@ struct grab_client { }; /* Grab clients that are attached to a btr node. */ -INITIALIZED_LIST_HEAD(active_grab_client_list); +static INITIALIZED_LIST_HEAD(active_grab_client_list); /* Grab clients that are not currently attached any btr node. */ -INITIALIZED_LIST_HEAD(inactive_grab_client_list); +static INITIALIZED_LIST_HEAD(inactive_grab_client_list); static int gc_write(struct grab_client *gc, char *buf, size_t len) { diff --git a/gui_theme.c b/gui_theme.c index ffa5d792..4abc45ec 100644 --- a/gui_theme.c +++ b/gui_theme.c @@ -362,7 +362,7 @@ struct theme_description { void (*init)(struct gui_theme *t); }; -struct theme_description themes[] = { +static struct theme_description themes[] = { { .name = "colorful blackness", .init = init_theme_colorful_blackness, diff --git a/imdct.c b/imdct.c index 5f48ba44..e9264993 100644 --- a/imdct.c +++ b/imdct.c @@ -59,7 +59,7 @@ struct mdct_context { }; /** cos(2 * pi * x / n) for 0 <= x <= n / 4, followed by its reverse */ -#define COSINE_TAB(n) fftsample_t cos_ ## n[n / 2] __a_aligned(16) +#define COSINE_TAB(n) static fftsample_t cos_ ## n[n / 2] __a_aligned(16) COSINE_TAB(16); COSINE_TAB(32); diff --git a/wmadec_filter.c b/wmadec_filter.c index bb534df5..0b381c5d 100644 --- a/wmadec_filter.c +++ b/wmadec_filter.c @@ -150,7 +150,7 @@ struct private_wmadec_data { #define VLCBITS 9 #define VLCMAX DIV_ROUND_UP(22, VLCBITS) -#define SINE_WINDOW(x) float sine_ ## x[x] __a_aligned(16) +#define SINE_WINDOW(x) static float sine_ ## x[x] __a_aligned(16) SINE_WINDOW(128); SINE_WINDOW(256); -- 2.39.2