From a09ab523bb915e179cb92fa560bd997a4d8f25cd Mon Sep 17 00:00:00 2001 From: Jeff Hill Date: Tue, 19 Dec 1995 19:31:28 +0000 Subject: [PATCH] no longer uses local variable --- src/ca/flow_control.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/ca/flow_control.c b/src/ca/flow_control.c index c126dc0cb..6a309dd00 100644 --- a/src/ca/flow_control.c +++ b/src/ca/flow_control.c @@ -51,7 +51,6 @@ void flow_control(struct ioc_in_use *piiu) { unsigned nbytes; int status; - int busy = piiu->client_busy; LOCK; @@ -74,19 +73,19 @@ void flow_control(struct ioc_in_use *piiu) */ if (nbytes) { piiu->contiguous_msg_count++; - if (!busy) + if (!piiu->client_busy) if (piiu->contiguous_msg_count > MAX_CONTIGUOUS_MSG_COUNT) { piiu->client_busy = TRUE; ca_busy_message(piiu); -# ifdef DEBUG +# if defined(DEBUG) printf("fc on\n"); # endif } } else { piiu->contiguous_msg_count = 0; - if (busy) { -# ifdef DEBUG + if (piiu->client_busy) { +# if defined(DEBUG) printf("fc off\n"); # endif ca_ready_message(piiu);