[vlc-devel] [PATCH] demux/mpeg: Make compare function argument types const
Marvin Scholz
epirat07 at gmail.com
Mon Nov 20 10:22:24 CET 2017
This matches the manpage and gets rids of a compiler warning.
---
modules/demux/mpeg/ts_pid.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/demux/mpeg/ts_pid.c b/modules/demux/mpeg/ts_pid.c
index 64e6e79df7..8604aba494 100644
--- a/modules/demux/mpeg/ts_pid.c
+++ b/modules/demux/mpeg/ts_pid.c
@@ -65,7 +65,7 @@ struct searchkey
ts_pid_t **pp_last;
};
-static int ts_bsearch_searchkey_Compare( void *key, void *other )
+static int ts_bsearch_searchkey_Compare( const void *key, const void *other )
{
struct searchkey *p_key = (struct searchkey *) key;
ts_pid_t *p_pid = *((ts_pid_t **) other);
--
2.13.6 (Apple Git-96)
More information about the vlc-devel
mailing list