From: Andre Noll Date: Thu, 21 Apr 2011 22:05:43 +0000 (+0200) Subject: Make some variables static. X-Git-Tag: v0.4.7~15 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=667baad59c7c274b2a68a7e46022d6e508d6672e Make some variables static. Found by sparse. --- 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);