Fix problems reported by clang.

By: Luis Felipe Strano Moraes



SVN revision: 39263
This commit is contained in:
Gustavo Sverzut Barbieri 2009-02-26 22:47:20 +00:00
parent 549f978ed7
commit b0c84e2215
3 changed files with 8 additions and 8 deletions

View File

@ -221,10 +221,10 @@ main(int argc, char **argv)
if ((type == E_FM_OP_MOVE) && (rename(argv[2], argv[3]) == 0))
goto quit;
else if ((type == E_FM_OP_SYMLINK) &&
(symlink(task->src.name, task->dst.name) == 0))
(symlink(argv[2], argv[3]) == 0))
goto quit;
/* If that does work, setup a copy and delete operation.
/* If that doesn't work, setup a copy and delete operation.
It's not atomic, but it's the best we can do. */
task = _e_fm_op_task_new();
task->type = type;

View File

@ -811,8 +811,10 @@ _update_mouse_binding_list(E_Config_Dialog_Data *cfdata)
button = _helper_wheel_name_get(bw);
mods = _helper_modifier_name_get(bw->modifiers);
snprintf(label, sizeof(label), "%s%s%s", button ? button : "", mods[0] ? " + ": "",
mods ? mods : "");
if (mods && mods[0])
snprintf(label, sizeof(label), "%s + %s", button ? button : "", mods);
else
snprintf(label, sizeof(label), "%s", button ? button : "");
if (button) free(button);
if (mods) free(mods);

View File

@ -125,9 +125,6 @@ _gc_shutdown(E_Gadcon_Client *gcc)
static void
_gc_orient(E_Gadcon_Client *gcc, E_Gadcon_Orient orient)
{
Instance *inst;
inst = gcc->data;
e_gadcon_client_aspect_set(gcc, 16, 16);
e_gadcon_client_min_size_set(gcc, 16, 16);
}
@ -811,7 +808,8 @@ _cpufreq_event_cb_powersave(void *data __UNUSED__, int type, void *event)
{
E_Event_Powersave_Update *ev;
Eina_List *l;
Eina_Bool has_powersave, has_conservative;
Eina_Bool has_powersave = EINA_FALSE;
Eina_Bool has_conservative = EINA_FALSE;
if (type != E_EVENT_POWERSAVE_UPDATE) return 1;
if (!cpufreq_config->auto_powersave) return 1;