Deleted Added
full compact
courier.c (7527) courier.c (8874)
1/*
2 * Copyright (c) 1986, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 255 unchanged lines hidden (view full) ---

264 sleep(1);
265 ioctl(FD, FIONREAD, &len);
266 if (len) {
267 len = read(FD, buf, sizeof(buf));
268#ifdef DEBUG
269 buf[len] = '\0';
270 printf("coursync: (\"%s\")\n\r", buf);
271#endif
1/*
2 * Copyright (c) 1986, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 255 unchanged lines hidden (view full) ---

264 sleep(1);
265 ioctl(FD, FIONREAD, &len);
266 if (len) {
267 len = read(FD, buf, sizeof(buf));
268#ifdef DEBUG
269 buf[len] = '\0';
270 printf("coursync: (\"%s\")\n\r", buf);
271#endif
272 if (index(buf, '0') ||
272 if (index(buf, '0') ||
273 (index(buf, 'O') && index(buf, 'K')))
274 return(1);
275 }
276 /*
277 * If not strapped for DTR control,
278 * try to get command mode.
279 */
280 sleep(1);

--- 54 unchanged lines hidden ---
273 (index(buf, 'O') && index(buf, 'K')))
274 return(1);
275 }
276 /*
277 * If not strapped for DTR control,
278 * try to get command mode.
279 */
280 sleep(1);

--- 54 unchanged lines hidden ---