]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
Make some variables static.
authorAndre Noll <maan@systemlinux.org>
Thu, 21 Apr 2011 22:05:43 +0000 (00:05 +0200)
committerAndre Noll <maan@systemlinux.org>
Thu, 21 Apr 2011 22:05:43 +0000 (00:05 +0200)
Found by sparse.

grab_client.c
gui_theme.c
imdct.c
wmadec_filter.c

index de6df6dfddae9d9f24e33323fadc762fd326acb0..a85e42a967817d6d767a6f9bf52b95c6146d5369 100644 (file)
@@ -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)
 {
index ffa5d792ee199f16e5bb26c5e6557054520f8e5c..4abc45ec6e7a0cd60872d840a04d4f2659ca5119 100644 (file)
@@ -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 5f48ba44c11b1186f6ebea4d5cec33b34e622bcc..e926499393bc1fadcd0bedc251cc74ce7d9585de 100644 (file)
--- 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);
index bb534df528c5278198da5c116eb324bfe099da85..0b381c5d9f0baabb657d0b8d51adfb8683e1495b 100644 (file)
@@ -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);