X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=modules%2Fppp_comp.c;h=7c475ef28536bed2e32fcfda39d86e2feefd3efb;hb=799c9cfba45ffc770212c24d16887b8581da6010;hp=9cb77c306920536345c4cd516ada4befdcb02f77;hpb=18de18edfb0ebefef8c0e2b0686e8793bc1ba127;p=ppp.git diff --git a/modules/ppp_comp.c b/modules/ppp_comp.c index 9cb77c3..7c475ef 100644 --- a/modules/ppp_comp.c +++ b/modules/ppp_comp.c @@ -24,7 +24,7 @@ * OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, * OR MODIFICATIONS. * - * $Id: ppp_comp.c,v 1.10 1999/02/26 10:52:07 paulus Exp $ + * $Id: ppp_comp.c,v 1.12 1999/09/15 23:49:06 masputra Exp $ */ /* @@ -106,6 +106,8 @@ struct streamtab ppp_compinfo = { &r_init, &w_init, NULL, NULL }; +int ppp_comp_count; /* number of module instances in use */ + #ifdef __osf__ static void ppp_comp_alloc __P((comp_state_t *)); @@ -200,6 +202,7 @@ MOD_OPEN(ppp_comp_open) OPEN_ERROR(ENOSR); cp->thread = thread; #endif + ++ppp_comp_count; qprocson(q); } return 0; @@ -225,6 +228,7 @@ MOD_CLOSE(ppp_comp_close) FREE(cp, sizeof(comp_state_t)); q->q_ptr = NULL; OTHERQ(q)->q_ptr = NULL; + --ppp_comp_count; } return 0; } @@ -594,7 +598,7 @@ static int ppp_comp_wsrv(q) queue_t *q; { - mblk_t *mp, *cmp = NULL, *np; + mblk_t *mp, *cmp = NULL; comp_state_t *cp; int len, proto, type, hlen, code; struct ip *ip;