From 4ba28aa02321d5bb13b83e80fe6848d90efa7488 Mon Sep 17 00:00:00 2001 From: reimar Date: Sun, 2 Dec 2007 21:41:51 +0000 Subject: [PATCH] evNames / evBoxs should be "static const" git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25271 b3059339-0415-0410-9bf9-f77b7e298cf2 --- gui/app.c | 4 ++-- gui/app.h | 3 --- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/gui/app.c b/gui/app.c index 3558320d6e..b300179468 100644 --- a/gui/app.c +++ b/gui/app.c @@ -14,7 +14,7 @@ #include "mplayer/gmplayer.h" #include "interface.h" -evName evNames[] = +static const evName evNames[] = { { evNone, "evNone" }, { evPlay, "evPlay" }, @@ -66,7 +66,7 @@ evName evNames[] = { evSetAspect, "evSetAspect" } }; -int evBoxs = sizeof( evNames ) / sizeof( evName ); +static const int evBoxs = sizeof( evNames ) / sizeof( evName ); // --- diff --git a/gui/app.h b/gui/app.h index 197c294bcc..073ff10d7f 100644 --- a/gui/app.h +++ b/gui/app.h @@ -97,9 +97,6 @@ typedef struct const char * name; } evName; -extern int evBoxs; -extern evName evNames[]; - #define itNULL 0 #define itButton 101 // button #define itHPotmeter 102 // horizontal potmeter