]> git.ipfire.org Git - thirdparty/HylaFAX.git/commitdiff
Bug 638: now fix attempts++ with ++attempts
authorLee Howard <faxguy@howardsilvan.com>
Thu, 14 Apr 2005 04:14:07 +0000 (04:14 +0000)
committerLee Howard <faxguy@howardsilvan.com>
Thu, 14 Apr 2005 04:14:07 +0000 (04:14 +0000)
faxd/Class1Recv.c++

index cfbd883d2d35fe75bbe525c0d4485fa7194601aa..39dc45132b3a158cf8c5b69bd85a4dc15d6173c7 100644 (file)
@@ -529,7 +529,7 @@ Class1Modem::recvPage(TIFF* tif, u_int& ppm, fxStr& emsg, const fxStr& id)
                do {
                    (void) atCmd(rmCmd, AT_NOTHING);
                    rmResponse = atResponse(rbuf, conf.class1RMPersistence ? conf.t2Timer : conf.t2Timer - conf.t4Timer);
-               } while ((rmResponse == AT_NOTHING || rmResponse == AT_FCERROR) && attempts++ < conf.class1RMPersistence);
+               } while ((rmResponse == AT_NOTHING || rmResponse == AT_FCERROR) && ++attempts < conf.class1RMPersistence);
                if (rmResponse == AT_CONNECT) {
                    /*
                     * The message carrier was recognized;
@@ -883,7 +883,7 @@ Class1Modem::raiseRecvCarrier(bool& dolongtrain, fxStr& emsg)
     do {
        (void) atCmd(rmCmd, AT_NOTHING);
        lastResponse = atResponse(rbuf, conf.class1RMPersistence ? conf.t2Timer : conf.t2Timer - conf.t4Timer);
-    } while ((lastResponse == AT_NOTHING || lastResponse == AT_FCERROR) && attempts++ < conf.class1RMPersistence);
+    } while ((lastResponse == AT_NOTHING || lastResponse == AT_FCERROR) && ++attempts < conf.class1RMPersistence);
     if (lastResponse == AT_FRH3 && waitFor(AT_CONNECT,0)) {
        gotRTNC = true;
        gotEOT = false;