diff options
Diffstat (limited to 'gnu/libexec/uucp/uucico/protg.c')
-rw-r--r-- | gnu/libexec/uucp/uucico/protg.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/gnu/libexec/uucp/uucico/protg.c b/gnu/libexec/uucp/uucico/protg.c index efae85f..eda4ed0 100644 --- a/gnu/libexec/uucp/uucico/protg.c +++ b/gnu/libexec/uucp/uucico/protg.c @@ -1,7 +1,7 @@ /* protg.c The 'g' protocol. - Copyright (C) 1991, 1992, 1993, 1994 Ian Lance Taylor + Copyright (C) 1991, 1992, 1993, 1994, 1995 Ian Lance Taylor This file is part of the Taylor UUCP package. @@ -17,16 +17,16 @@ You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software - Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. The author of the program may be contacted at ian@airs.com or - c/o Cygnus Support, Building 200, 1 Kendall Square, Cambridge, MA 02139. + c/o Cygnus Support, 48 Grove Street, Somerville, MA 02144. */ #include "uucp.h" #if USE_RCS_ID -const char protg_rcsid[] = "$Id: protg.c,v 1.2 1994/05/07 18:13:46 ache Exp $"; +const char protg_rcsid[] = "$Id: protg.c,v 1.68 1995/06/21 19:15:22 ian Rel $"; #endif #include <ctype.h> @@ -137,7 +137,7 @@ const char protg_rcsid[] = "$Id: protg.c,v 1.2 1994/05/07 18:13:46 ache Exp $"; /* Maximum amount of data in a single packet. This is set by the <k> field in the header; the amount of data in a packet is 2 ** (<k> + 4). <k> ranges from 1 to 8. */ - + #define CMAXDATAINDEX (8) #define CMAXDATA (1 << (CMAXDATAINDEX + 4)) @@ -446,7 +446,7 @@ fgstart (qdaemon, pzlog) iGrequest_packsize, qdaemon->qproto->bname); iseg = 1; } - + if (iGrequest_winsize <= 0 || iGrequest_winsize > 7) { ulog (LOG_ERROR, "Illegal window size %d for '%c' protocol", @@ -561,7 +561,7 @@ fvstart (qdaemon, pzlog) if (iGrequest_packsize == IPACKSIZE) iGrequest_packsize = 1024; return fgstart (qdaemon, pzlog); -} +} /* Exchange initialization messages with the other system. @@ -1140,7 +1140,7 @@ fgwait_for_packet (qdaemon, freturncontrol, ctimeout, cretries) size_t cneed; boolean ffound; size_t crec; - + if (! fgprocess_data (qdaemon, TRUE, freturncontrol, &fexit, &cneed, &ffound)) return FALSE; @@ -1502,7 +1502,7 @@ fgprocess_data (qdaemon, fdoacks, freturncontrol, pfexit, pcneed, pffound) cinbuf -= CFRAMELEN; /* Make sure we have enough data. If we don't, wait for - more. */ + more. */ cwant = (int) CPACKLEN (ab); if (cinbuf < cwant) @@ -1511,7 +1511,7 @@ fgprocess_data (qdaemon, fdoacks, freturncontrol, pfexit, pcneed, pffound) *pcneed = cwant - cinbuf; return TRUE; } - + /* Set up the data pointers and compute the checksum. */ if (iPrecend >= iPrecstart) cfirst = cwant; @@ -1546,7 +1546,7 @@ fgprocess_data (qdaemon, fdoacks, freturncontrol, pfexit, pcneed, pffound) (((0xaaaa - (icheck ^ (ab[IFRAME_CONTROL] & 0xff))) & 0xffff))); } - + ihdrcheck = (unsigned short) (((ab[IFRAME_CHECKHIGH] & 0xff) << 8) | (ab[IFRAME_CHECKLOW] & 0xff)); @@ -1614,7 +1614,7 @@ fgprocess_data (qdaemon, fdoacks, freturncontrol, pfexit, pcneed, pffound) && CONTROL_XXX (ab[IFRAME_CONTROL]) == RR && iGremote_ack == CONTROL_YYY (ab[IFRAME_CONTROL]) && INEXTSEQ (iGremote_ack) != iGsendseq - && iGretransmit_seq != -1) + && iGretransmit_seq == -1) { DEBUG_MESSAGE0 (DEBUG_PROTO | DEBUG_ABNORMAL, "fgprocess_data: Treating duplicate RR as RJ"); |