[MPlayer-cvslog] r34416 - in trunk/gui: app.c app.h
ib
subversion at mplayerhq.hu
Fri Dec 9 13:11:03 CET 2011
Author: ib
Date: Fri Dec 9 13:11:03 2011
New Revision: 34416
Log:
Change parameter name and its declaration to const.
Modified:
trunk/gui/app.c
trunk/gui/app.h
Modified: trunk/gui/app.c
==============================================================================
--- trunk/gui/app.c Fri Dec 9 13:05:37 2011 (r34415)
+++ trunk/gui/app.c Fri Dec 9 13:11:03 2011 (r34416)
@@ -132,16 +132,16 @@ void appFreeStruct(void)
/**
* @brief Find the event belonging to an event name.
*
- * @param str event name
+ * @param name event name
*
* @return event >= 0 (ok) or -1 (not found)
*/
-int appFindMessage(unsigned char *str)
+int appFindMessage(const char *name)
{
unsigned int i;
for (i = 0; i < FF_ARRAY_ELEMS(evNames); i++)
- if (!strcmp(evNames[i].name, str))
+ if (!strcmp(evNames[i].name, name))
return evNames[i].message;
return -1;
Modified: trunk/gui/app.h
==============================================================================
--- trunk/gui/app.h Fri Dec 9 13:05:37 2011 (r34415)
+++ trunk/gui/app.h Fri Dec 9 13:11:03 2011 (r34416)
@@ -187,7 +187,7 @@ typedef struct {
extern guiItems guiApp;
-int appFindMessage(unsigned char *str);
+int appFindMessage(const char *name);
void appFreeStruct(void);
void btnModify(int event, float state);
void btnSet(int event, int set);
More information about the MPlayer-cvslog
mailing list