Enlightenment CVS committal Author : sebastid Project : e17 Module : apps/e
Dir : e17/apps/e/src/modules/temperature Modified Files: e_mod_main.c e_mod_main.h Log Message: Add const =================================================================== RCS file: /cvs/e/e17/apps/e/src/modules/temperature/e_mod_main.c,v retrieving revision 1.58 retrieving revision 1.59 diff -u -3 -r1.58 -r1.59 --- e_mod_main.c 9 May 2006 13:02:48 -0000 1.58 +++ e_mod_main.c 31 May 2006 16:24:33 -0000 1.59 @@ -12,7 +12,7 @@ /***************************************************************************/ /**/ /* gadcon requirements */ -static E_Gadcon_Client *_gc_init(E_Gadcon *gc, char *name, char *id, char *style); +static E_Gadcon_Client *_gc_init(E_Gadcon *gc, const char *name, const char *id, const char *style); static void _gc_shutdown(E_Gadcon_Client *gcc); static void _gc_orient(E_Gadcon_Client *gcc); static char *_gc_label(void); @@ -52,7 +52,7 @@ Config *temperature_config = NULL; static E_Gadcon_Client * -_gc_init(E_Gadcon *gc, char *name, char *id, char *style) +_gc_init(E_Gadcon *gc, const char *name, const char *id, const char *style) { Evas_Object *o; E_Gadcon_Client *gcc; @@ -217,7 +217,7 @@ therms = ecore_file_ls("/sys/bus/i2c/devices"); if (therms) { - char *name, *sensor; + const char *name, *sensor; sensor = temperature_config->sensor_name; if (!sensor) sensor = "temp1"; =================================================================== RCS file: /cvs/e/e17/apps/e/src/modules/temperature/e_mod_main.h,v retrieving revision 1.19 retrieving revision 1.20 diff -u -3 -r1.19 -r1.20 --- e_mod_main.h 9 May 2006 13:02:48 -0000 1.19 +++ e_mod_main.h 31 May 2006 16:24:33 -0000 1.20 @@ -17,7 +17,7 @@ /* saved * loaded config values */ double poll_time; int low, high; - char *sensor_name; + const char *sensor_name; Unit units; /* just config state */ E_Module *module; _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs