changeset 34328:6cfca461669c

Change parameter name and its declaration to const.
author ib
date Fri, 09 Dec 2011 12:11:03 +0000
parents 4d4726efed3e
children d7c8a3cee15e
files gui/app.c gui/app.h
diffstat 2 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/gui/app.c	Fri Dec 09 12:05:37 2011 +0000
+++ b/gui/app.c	Fri Dec 09 12:11:03 2011 +0000
@@ -132,16 +132,16 @@
 /**
  * @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;
--- a/gui/app.h	Fri Dec 09 12:05:37 2011 +0000
+++ b/gui/app.h	Fri Dec 09 12:11:03 2011 +0000
@@ -187,7 +187,7 @@
 
 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);