From 9a9f26a62d1deb6cb340dd3a07bc33875bc15641 Mon Sep 17 00:00:00 2001 From: David du Colombier <0intro@gmail.com> Date: Mon, 15 Jun 1992 00:00:00 +0000 Subject: [PATCH] Plan 9 from Bell Labs 1992-06-15 --- port/stil.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/port/stil.c b/port/stil.c index babd363b84e0276a1f31d5d5c7719a2050858836..c8c47eb6b6ac72d5c8df8053f084d33f34b21dcc 100644 --- a/port/stil.c +++ b/port/stil.c @@ -40,7 +40,9 @@ enum ILgain = 8, }; -#define Starttimer(s) {(s)->timeout = 0; (s)->fasttime = (Fasttime*(s)->rtt)/Iltickms; (s)->slowtime = (Slowtime*(s)->rtt)/Iltickms; } +#define Starttimer(s) {(s)->timeout = 0; \ + (s)->fasttime = (Fasttime*(s)->rtt)/Iltickms; \ + (s)->slowtime = (Slowtime*(s)->rtt)/Iltickms; } void ilrcvmsg(Ipconv*, Block*); void ilackproc(void*); @@ -224,7 +226,7 @@ ilackto(Ilcb *ic, ulong ackto) if(ic->rttack == ackto) { t = TK2MS(MACHP(0)->ticks - ic->ackms); - /* Guard against the ulong zero wrap */ + /* Guard against the ulong zero wrap if MACP->ticks */ if(t < 100*ic->rtt) ic->rtt = (ic->rtt*(ILgain-1)+t)/ILgain; if(ic->rtt < Iltickms)