From: Max Kellermann Date: Mon, 15 Sep 2008 11:27:32 +0000 (+0200) Subject: lyrics: converted global variables to static X-Git-Tag: v0.12_alpha1~310 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=6dc4fcca76fc4f3c232acb6d6bfcace5b17e466c;p=ncmpc.git 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. --- 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;