summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--input/ar.c3
-rw-r--r--input/lirc.c1
2 files changed, 3 insertions, 1 deletions
diff --git a/input/ar.c b/input/ar.c
index f8a3f0ad44..7b7cc8e3db 100644
--- a/input/ar.c
+++ b/input/ar.c
@@ -415,7 +415,7 @@ int mp_input_ar_read(void *ctx, int fd)
int mp_input_ar_close(int fd)
{
if (initialized == 0)
- return;
+ return 0;
// Close the device.
(*hidDeviceInterface)->close(hidDeviceInterface);
@@ -431,6 +431,7 @@ int mp_input_ar_close(int fd)
(*hidDeviceInterface)->Release(hidDeviceInterface);
initialized = 0;
+ return 0;
}
#ifdef TEST
diff --git a/input/lirc.c b/input/lirc.c
index 80744e606a..490abe2cb1 100644
--- a/input/lirc.c
+++ b/input/lirc.c
@@ -119,4 +119,5 @@ int mp_input_lirc_close(int fd)
cmd_buf = NULL;
lirc_freeconfig(lirc_config);
lirc_deinit();
+ return 0;
}