Removed unused variable 'found' in config_item_get function.

Cleaned up compiler warnings from evas_stringshare_add by making char *
into const char *.
Fixed _ibar_new function to use const char *.


SVN revision: 22696
This commit is contained in:
Christopher Michael 2006-05-18 12:24:35 +00:00
parent 3c7f797f08
commit b8a3ef44ee
2 changed files with 5 additions and 7 deletions

View File

@ -40,7 +40,7 @@ struct _Instance
IBar *ibar;
E_Drop_Handler *drop_handler;
Ecore_Timer *drop_recalc_timer;
char *dir;
const char *dir;
};
struct _IBar
@ -73,7 +73,7 @@ struct _IBar_Icon
} drag;
};
static IBar *_ibar_new(Evas *evas, char *dir);
static IBar *_ibar_new(Evas *evas, const char *dir);
static void _ibar_free(IBar *b);
static void _ibar_cb_empty_mouse_down(void *data, Evas *e, Evas_Object *obj, void *event_info);
static void _ibar_empty_handle(IBar *b);
@ -238,7 +238,7 @@ _gc_icon(Evas *evas)
/**/
static IBar *
_ibar_new(Evas *evas, char *dir)
_ibar_new(Evas *evas, const char *dir)
{
IBar *b;
char buf[4096];
@ -1324,11 +1324,9 @@ e_modapi_save(E_Module *m)
for (l = ibar_config->instances; l; l = l->next)
{
Instance *inst;
int found;
Config_Item *ci;
inst = l->data;
found = 0;
ci = _ibar_config_item_get(inst->gcc->id);
if (ci->dir) evas_stringshare_del(ci->dir);
/* FIXME: path should be recorded from setup */

View File

@ -21,8 +21,8 @@ struct _Config
struct _Config_Item
{
char *id;
char *dir;
const char *id;
const char *dir;
int show_label;
};