diff options
author | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2007-06-15 13:44:42 +0200 |
---|---|---|
committer | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2007-06-15 13:44:42 +0200 |
commit | 606cb0dce429eb6c8603c984c8094774f78ee058 (patch) | |
tree | 6151ea5c678602974049a9ca5fd2d3cb0f07f30e | |
parent | 2a71bfd9649625693e4429b8bbf0d5618f66b861 (diff) | |
download | xine-lib-606cb0dce429eb6c8603c984c8094774f78ee058.tar.gz xine-lib-606cb0dce429eb6c8603c984c8094774f78ee058.tar.bz2 |
Fix signedness on channel_index() function.
-rw-r--r-- | src/input/input_dvb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/input/input_dvb.c b/src/input/input_dvb.c index d29b08c49..cae6d6935 100644 --- a/src/input/input_dvb.c +++ b/src/input/input_dvb.c @@ -1306,8 +1306,8 @@ static void dvb_parse_si(dvb_input_plugin_t *this) { /* Helper function for finding the channel index in the channels struct given the service_id. If channel is not found, -1 is returned. */ -static int channel_index(dvb_input_plugin_t* this, unsigned int service_id) { - unsigned int n; +static int channel_index(dvb_input_plugin_t* this, int service_id) { + int n; for (n=0; n < this->num_channels; n++) if (this->channels[n].service_id == service_id) return n; |