gatchat: Avoid shadowing variables

This commit is contained in:
Marcel Holtmann 2012-07-15 20:06:43 -03:00
parent 9077c0bf7f
commit 17828ce9c9
2 changed files with 4 additions and 4 deletions

View File

@ -535,10 +535,10 @@ static gboolean at_chat_handle_command_response(struct at_chat *p,
}
if (cmd->prefixes) {
int i;
int n;
for (i = 0; cmd->prefixes[i]; i++)
if (g_str_has_prefix(line, cmd->prefixes[i]))
for (n = 0; cmd->prefixes[n]; n++)
if (g_str_has_prefix(line, cmd->prefixes[n]))
goto out;
return FALSE;

View File

@ -242,7 +242,7 @@ static void write_watcher_destroy_notify(gpointer user_data)
mux->write_watch = 0;
}
static gboolean can_write_data(GIOChannel *channel, GIOCondition cond,
static gboolean can_write_data(GIOChannel *chan, GIOCondition cond,
gpointer data)
{
GAtMux *mux = data;