From 6dc4fcca76fc4f3c232acb6d6bfcace5b17e466c Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 15 Sep 2008 13:27:32 +0200 Subject: [PATCH] lyrics: converted global variables to static 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 | 4 +++- src/src_lyrics.h | 5 ----- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/screen_lyrics.c b/src/screen_lyrics.c index 5932969..eb7035a 100644 --- a/src/screen_lyrics.c +++ b/src/screen_lyrics.c @@ -43,7 +43,9 @@ #include #include -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); diff --git a/src/src_lyrics.h b/src/src_lyrics.h index b972e7a..9e13cd4 100644 --- a/src/src_lyrics.h +++ b/src/src_lyrics.h @@ -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; -- 2.30.2