diff options
author | brian <brian@FreeBSD.org> | 1997-11-22 03:37:54 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 1997-11-22 03:37:54 +0000 |
commit | a7f001c816c9390acda1c72f889fd110f8d75563 (patch) | |
tree | 876d508224fb0bc9435a2e3b83f73719b56ad0b6 /usr.sbin/ppp/modem.h | |
parent | 13d351d26116b6bf544f619e0de396a53d47ccd1 (diff) | |
download | FreeBSD-src-a7f001c816c9390acda1c72f889fd110f8d75563.zip FreeBSD-src-a7f001c816c9390acda1c72f889fd110f8d75563.tar.gz |
Fix prototypes.
Remove extraneous decls.
Add ``const'' to several places.
Allow ``make NOALIAS=1'' to remove IP aliasing.
Merge with OpenBSD - only the Makefiles vary.
We can now survive a compile with
-Wall -Wbad-function-cast -Wcast-align -Wcast-qual
-Winline -Wmissing-declarations -Wmissing-prototypes
-Wnested-externs -Wpointer-arith -Wredundant-decls
-Wshadow -Wstrict-prototypes -Wwrite-strings -Wchar-subscripts
(although the Makefile just contains -Wall).
Diffstat (limited to 'usr.sbin/ppp/modem.h')
-rw-r--r-- | usr.sbin/ppp/modem.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.sbin/ppp/modem.h b/usr.sbin/ppp/modem.h index 43541fa..fae70e5 100644 --- a/usr.sbin/ppp/modem.h +++ b/usr.sbin/ppp/modem.h @@ -15,7 +15,7 @@ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * $Id: modem.h,v 1.12 1997/10/29 01:19:45 brian Exp $ + * $Id: modem.h,v 1.13 1997/11/08 00:28:10 brian Exp $ * * TODO: */ @@ -23,19 +23,19 @@ extern int RawModem(void); extern void UpModem(int); extern void DownModem(int); -extern void WriteModem(int, char *, int); +extern void WriteModem(int, const char *, int); extern void ModemStartOutput(int); extern int OpenModem(void); extern int ModemSpeed(void); extern int ModemQlen(void); extern int DialModem(void); extern speed_t IntToSpeed(int); -extern void ModemTimeout(void); +extern void ModemTimeout(void *v); extern void DownConnection(void); extern void ModemOutput(int, struct mbuf *); -extern int ChangeParity(char *); +extern int ChangeParity(const char *); extern void HangupModem(int); -extern int ShowModemStatus(void); +extern int ShowModemStatus(struct cmdargs const *); extern void Enqueue(struct mqueue *, struct mbuf *); extern struct mbuf *Dequeue(struct mqueue *); extern void ModemAddInOctets(int); |