General cleanup of the demand dialer stuff. Added a bunch of short

functions to the WvWeaver class to make it more manageable. (net_online(),
net_dynamic(), dialer_configured(), etc).


git-svn-id: file:///home/apenwarr/alumnit-svn/public/trunk@69 6619c942-59fa-0310-bf43-a07aaa81d9ac
This commit is contained in:
apenwarr 1998-12-11 05:51:18 +00:00
parent 566d2c8239
commit b0edaed2b8
1 changed files with 7 additions and 6 deletions

View File

@ -400,13 +400,14 @@ bool WvDialer::init_modem()
int received;
// Open the modem...
if( !modem ) {
modem = new WvModem( options.modem, options.baud );
if( !modem->isok() ) {
err( "Cannot open %s: %s\n", options.modem, modem->errstr() );
return( false );
}
if( modem ) delete modem;
modem = new WvModem( options.modem, options.baud );
if( !modem->isok() ) {
err( "Cannot open %s: %s\n", options.modem, modem->errstr() );
return( false );
}
log( "Initializing modem.\n" );
// make modem happy