/[pengfork]/pengfork/src/modem.c
ViewVC logotype

Diff of /pengfork/src/modem.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.6 by chupa, Thu Aug 29 08:41:55 2002 UTC revision 1.7 by chupa, Thu Aug 29 15:43:46 2002 UTC
# Line 626  modem_wait_for (prompt, timeout) Line 626  modem_wait_for (prompt, timeout)
626        if ((count = read (fd, p, sizeof(buffer) - nread)) < 0)        if ((count = read (fd, p, sizeof(buffer) - nread)) < 0)
627          return 0;          return 0;
628        nread += count;        nread += count;
629        p += nread;        p += count;
630        *p = '\0';        *p = '\0';
631        if (strstr (buffer, prompt))        if (strstr (buffer, prompt))
632          return 1;          return 1;

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26