summaryrefslogtreecommitdiff
path: root/dvbapi.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2001-03-31 10:50:56 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2001-03-31 10:50:56 +0200
commit36aae95b65ded86cade12f61d787ea1b441b5607 (patch)
treed2c85fea1fab41c0a4c5ebc20480b263f431e4f2 /dvbapi.c
parent378db17bee8dd5fcdcb4486900336048a35f7018 (diff)
downloadvdr-36aae95b65ded86cade12f61d787ea1b441b5607.tar.gz
vdr-36aae95b65ded86cade12f61d787ea1b441b5607.tar.bz2
Searching for free DVB card from low to high index
Diffstat (limited to 'dvbapi.c')
-rw-r--r--dvbapi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/dvbapi.c b/dvbapi.c
index 048683b4..a6ea8578 100644
--- a/dvbapi.c
+++ b/dvbapi.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: dvbapi.c 1.64 2001/03/18 16:47:16 kls Exp $
+ * $Id: dvbapi.c 1.65 2001/03/31 10:46:17 kls Exp $
*/
#include "dvbapi.h"
@@ -1517,7 +1517,7 @@ cDvbApi *cDvbApi::GetDvbApi(int Ca, int Priority)
{
cDvbApi *d = NULL, *dMinPriority = NULL;
int index = Ca - 1;
- for (int i = MAXDVBAPI; --i >= 0; ) {
+ for (int i = 0; i < MAXDVBAPI; i++) {
if (dvbApi[i]) {
if (i == index) { // means we need exactly _this_ device
d = dvbApi[i];