summaryrefslogtreecommitdiff
path: root/plugins/shellexec
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-07-29 06:51:15 +0200
committerGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-07-29 06:51:15 +0200
commitc27c2b5cc332cd615b2ade47c92acbd2780e6eea (patch)
tree8e1e26bc9ab2fe4965f89253b476ffd070fd5c98 /plugins/shellexec
parentd2fa3b7e96c74e929cc846c55317879e1aebfa10 (diff)
several typo/warning fixes in actions/shellexec and related code
Diffstat (limited to 'plugins/shellexec')
-rw-r--r--plugins/shellexec/shellexec.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/shellexec/shellexec.c b/plugins/shellexec/shellexec.c
index 8adbb246..142004c0 100644
--- a/plugins/shellexec/shellexec.c
+++ b/plugins/shellexec/shellexec.c
@@ -198,8 +198,8 @@ shx_callback (Shx_action_t *action, DB_playItem_t *it)
static DB_plugin_action_t *
shx_get_actions (DB_playItem_t *it)
{
- Shx_action_t *action = actions;
- for (action = actions; action; action = action->parent.next)
+ Shx_action_t *action;
+ for (action = actions; action; action = (Shx_action_t *)action->parent.next)
{
if (((action->shx_flags & SHX_ACTION_LOCAL_ONLY) && !deadbeef->is_local_file (it->fname)) ||
((action->shx_flags & SHX_ACTION_REMOTE_ONLY) && deadbeef->is_local_file (it->fname)))
@@ -207,7 +207,7 @@ shx_get_actions (DB_playItem_t *it)
else
action->parent.flags &= ~DB_ACTION_DISABLED;
}
- return actions;
+ return (DB_plugin_action_t *)actions;
}
static int
@@ -271,7 +271,7 @@ shx_start ()
action->parent.title = strdup (title);
action->parent.name = strdup (name);
action->shcommand = strdup (command);
- action->parent.callback = shx_callback;
+ action->parent.callback = (DB_plugin_action_callback_t)shx_callback;
action->parent.flags = DB_ACTION_SINGLE_TRACK;
action->parent.next = NULL;
@@ -287,7 +287,7 @@ shx_start ()
action->parent.flags |= DB_ACTION_ALLOW_MULTIPLE_TRACKS;
if (prev)
- prev->parent.next = action;
+ prev->parent.next = (DB_plugin_action_t *)action;
prev = action;
if (!actions)