diff options
author | Uoti Urpala <uau@mplayer2.org> | 2011-07-16 18:17:48 +0300 |
---|---|---|
committer | Uoti Urpala <uau@mplayer2.org> | 2011-07-16 21:32:37 +0300 |
commit | 1916b95b8d3737ac783eb6351664f9892824e5c5 (patch) | |
tree | de224a15c89b6fac92c74a38e64b6b98ccfa5dfa /command.c | |
parent | db4dee45848bd48873cc3b0f654b6409c0ef3754 (diff) | |
download | mpv-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |