From 93233d46c038f769fa5fc2aa6e2d98a2059425ba Mon Sep 17 00:00:00 2001 From: Paul Slootman Date: Wed, 23 Jun 1999 13:01:36 +0000 Subject: [PATCH] Fixed 2 channel usage (flags is per driver, not per channel) --- xisdnload/xisdnload.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xisdnload/xisdnload.c b/xisdnload/xisdnload.c index 1ca8b46b..e2233e98 100644 --- a/xisdnload/xisdnload.c +++ b/xisdnload/xisdnload.c @@ -147,7 +147,7 @@ static Siobytes iobytes[ISDN_MAX_CHANNELS]; static Pixel onlinecolor, activecolor, tryingcolor, bgcolor; static long last[ISDN_MAX_CHANNELS]; static int usageflags[ISDN_MAX_CHANNELS]; -static int flags[ISDN_MAX_CHANNELS]; +static int flags[ISDN_MAX_DRIVERS]; static char phone[ISDN_MAX_CHANNELS][20]; static int fd_isdninfo; static Widget label_wid; @@ -322,7 +322,7 @@ XtPointer call_data; /* pointer to (double) return value */ #ifdef REGEX_NUMBER if (!regexec(&preg, phone[idx], 0, NULL, 0)) { #endif - if (flags[idx]) { + if (flags[idx/2]) { online_now++; if (get_iobytes) { if (ioctl(fd_isdninfo, IIOCGETCPS, &iobytes))