summaryrefslogtreecommitdiffstats
path: root/input/lirc.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/lirc.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/lirc.c')
-rw-r--r--input/lirc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/input/lirc.c b/input/lirc.c
index 15a2d82d7f..80744e606a 100644
--- a/input/lirc.c
+++ b/input/lirc.c
@@ -113,8 +113,8 @@ int mp_input_lirc_read(int fd,char* dest, int s) {
}
-void
-mp_input_lirc_close(int fd) {
+int mp_input_lirc_close(int fd)
+{
free(cmd_buf);
cmd_buf = NULL;
lirc_freeconfig(lirc_config);