summaryrefslogtreecommitdiffstats
path: root/command.c
diff options
context:
space:
mode:
authorUoti Urpala <uau@mplayer2.org>2011-07-16 18:17:48 +0300
committerUoti Urpala <uau@mplayer2.org>2011-07-16 21:32:37 +0300
commit1916b95b8d3737ac783eb6351664f9892824e5c5 (patch)
treede224a15c89b6fac92c74a38e64b6b98ccfa5dfa /command.c
parentdb4dee45848bd48873cc3b0f654b6409c0ef3754 (diff)
downloadmpv-1916b95b8d3737ac783eb6351664f9892824e5c5.tar.bz2
mpv-1916b95b8d3737ac783eb6351664f9892824e5c5.tar.xz
cleanup: remove some unnecessary input.[ch] typedefs
Remove some unnecessary typedefs and remove pointless mp_ prefix from some internal struct names. Change the type of the "close_func" pointers from "void f(int fd)" to "int f(int fd)" so that using standard close() there is valid. Delete some useless assert() statements. Move internal MP_MAX_KEY_DOWN define from input.h to input.c.
Diffstat (limited to 'command.c')
-rw-r--r--command.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/command.c b/command.c
index 817becad0f..fda7c25626 100644
--- a/command.c
+++ b/command.c
@@ -2610,7 +2610,7 @@ static int set_property_command(MPContext *mpctx, mp_cmd_t *cmd)
#ifdef CONFIG_DVDNAV
static const struct {
const char *name;
- const mp_command_type cmd;
+ const enum mp_command_type cmd;
} mp_dvdnav_bindings[] = {
{ "up", MP_CMD_DVDNAV_UP },
{ "down", MP_CMD_DVDNAV_DOWN },
@@ -3468,7 +3468,7 @@ void run_command(MPContext *mpctx, mp_cmd_t *cmd)
case MP_CMD_DVDNAV:{
int button = -1;
int i;
- mp_command_type command = 0;
+ enum mp_command_type command = 0;
if (mpctx->stream->type != STREAMTYPE_DVDNAV)
break;