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

Diff of /pengfork/src/modem/modem.c

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

revision 1.8 by chupa, Sun Dec 1 01:19:07 2002 UTC revision 1.9 by chupa, Mon Dec 2 15:57:12 2002 UTC
# Line 263  modem_dial_to (phone) Line 263  modem_dial_to (phone)
263  {  {
264    char response[256];    char response[256];
265    char dialcmd[256];    char dialcmd[256];
266      char *speed, *p;
267    
268    if (!phone)    if (!phone)
269      return 0;      return 0;
# Line 285  modem_dial_to (phone) Line 286  modem_dial_to (phone)
286        break;        break;
287    
288      case RESPONSE_CONNECT:     /* CONNECT */      case RESPONSE_CONNECT:     /* CONNECT */
289          p=strchr(response,' ');
290          if(p)
291            {
292            speed=p+1;
293            p=strchr(response,'/');
294            if(p)
295              *p='\0';
296            log (LOG_NOTICE, gettext("Connection at %sb/s done.\n"), speed);
297            }
298        return 1;        return 1;
299        break;        break;
300    
# Line 449  modem_close () Line 459  modem_close ()
459        tcflush (fd, TCIOFLUSH);        tcflush (fd, TCIOFLUSH);
460        tcsetattr (fd, TCSANOW, &old_t);        tcsetattr (fd, TCSANOW, &old_t);
461        close (fd);        close (fd);
462          device_unlock (PARAM_MODEM_DEVICE);
463        fd = -1;        fd = -1;
464        closing = 0;        closing = 0;
465      }      }

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9

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