o Add some missing #includes

o Calculate base device name correctly.
This commit is contained in:
Brian Somers 1998-05-21 22:55:08 +00:00
parent 25bc695c77
commit dadabc45a7
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=36287
2 changed files with 6 additions and 2 deletions

View File

@ -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"

View File

@ -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;