o Add some missing #includes
o Calculate base device name correctly.
This commit is contained in:
parent
7ef45be0aa
commit
dc0ae5e7bf
@ -17,7 +17,7 @@
|
||||
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
|
||||
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||
*
|
||||
* $Id: chap.c,v 1.28.2.27 1998/05/01 19:24:03 brian Exp $
|
||||
* $Id: chap.c,v 1.31 1998/05/21 21:44:25 brian Exp $
|
||||
*
|
||||
* TODO:
|
||||
*/
|
||||
@ -27,8 +27,10 @@
|
||||
#include <netinet/ip.h>
|
||||
#include <sys/un.h>
|
||||
|
||||
#include <md4.h>
|
||||
#include <md5.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <termios.h>
|
||||
|
||||
#include "mbuf.h"
|
||||
@ -56,6 +58,7 @@
|
||||
#include "bundle.h"
|
||||
#include "chat.h"
|
||||
#include "datalink.h"
|
||||
#include "chap_ms.h"
|
||||
|
||||
static const char *chapcodes[] = {
|
||||
"???", "CHALLENGE", "RESPONSE", "SUCCESS", "FAILURE"
|
||||
|
@ -17,7 +17,7 @@
|
||||
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
|
||||
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||
*
|
||||
* $Id: modem.c,v 1.77.2.71 1998/05/19 21:51:24 brian Exp $
|
||||
* $Id: modem.c,v 1.81 1998/05/21 21:46:56 brian Exp $
|
||||
*
|
||||
* TODO:
|
||||
*/
|
||||
@ -987,6 +987,7 @@ iov2modem(struct datalink *dl, struct iovec *iov, int *niov, int maxiov, int fd)
|
||||
p->desc.next = NULL;
|
||||
p->type = PHYS_DIRECT;
|
||||
p->dl = dl;
|
||||
len = strlen(_PATH_DEV);
|
||||
p->name.base = strncmp(p->name.full, _PATH_DEV, len) ?
|
||||
p->name.full : p->name.full + len;
|
||||
p->mbits = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user