Code

lyrics: converted global variables to static
authorMax Kellermann <max@duempel.org>
Mon, 15 Sep 2008 11:27:32 +0000 (13:27 +0200)
committerMax Kellermann <max@duempel.org>
Mon, 15 Sep 2008 11:27:32 +0000 (13:27 +0200)
The variables "lyrics_text_rows" and "lw" were declared in
src_lyrics.h as static, but they were only actually used in
screen_lyrics.c.  Move both there.

src/screen_lyrics.c
src/src_lyrics.h

index 59329694847d4fb00ef10c67441057e260fc361b..eb7035a0bba2061b01fef93ef05334345ded718f 100644 (file)
@@ -43,7 +43,9 @@
 #include <glib/gstdio.h>
 #include <stdio.h>
 
-int src_selection;
+static list_window_t *lw = NULL;
+static int lyrics_text_rows = -1;
+static int src_selection;
 
 static void lyrics_paint(screen_t *screen, mpdclient_t *c);
 
index b972e7af5f9a22180ea7da86626f45c2a6f70f15..9e13cd411d2d15dee7d50346c8862881bb5abc55 100644 (file)
@@ -24,11 +24,6 @@ typedef struct _retrieval_spec
         int way;
 } retrieval_spec;
 
-
-
-static int lyrics_text_rows = -1;
-static list_window_t *lw = NULL;
-
 GTimer *dltime;
 short int lock;
 formed_text lyr_text;