summaryrefslogtreecommitdiffstats
path: root/input/ar.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 /input/ar.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 'input/ar.c')
-rw-r--r--input/ar.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/input/ar.c b/input/ar.c
index 2f3fe16b24..f8a3f0ad44 100644
--- a/input/ar.c
+++ b/input/ar.c
@@ -412,7 +412,7 @@ int mp_input_ar_read(void *ctx, int fd)
return ret | down;
}
-void mp_input_ar_close(int fd)
+int mp_input_ar_close(int fd)
{
if (initialized == 0)
return;