changeset 25243:2dee54f0d8a0

evNames / evBoxs should be "static const"
author reimar
date Sun, 02 Dec 2007 21:41:51 +0000
parents 371a40dcc1cc
children 0798448dcbea
files gui/app.c gui/app.h
diffstat 2 files changed, 2 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/gui/app.c	Sun Dec 02 21:37:08 2007 +0000
+++ b/gui/app.c	Sun Dec 02 21:41:51 2007 +0000
@@ -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 @@
   { evSetAspect,	 "evSetAspect"	       }
  };
 
-int evBoxs = sizeof( evNames ) / sizeof( evName );
+static const int evBoxs = sizeof( evNames ) / sizeof( evName );
 
 // ---
 
--- a/gui/app.h	Sun Dec 02 21:37:08 2007 +0000
+++ b/gui/app.h	Sun Dec 02 21:41:51 2007 +0000
@@ -97,9 +97,6 @@
  const char * name;
 } evName;
 
-extern int evBoxs;
-extern evName evNames[];
-
 #define itNULL      0
 #define itButton    101 // button
 #define itHPotmeter 102 // horizontal potmeter