summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/i4b.c
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>2004-09-05 01:46:52 +0000
committerbrian <brian@FreeBSD.org>2004-09-05 01:46:52 +0000
commit6f864d0a973a7f3987d73132be311b7cfbd1ccfc (patch)
treefb5af1860e245ef67196527d9ba46e5c9e284bf6 /usr.sbin/ppp/i4b.c
parent2f8e87b45e5735ee9774fce8bc8ffaf1fdc72657 (diff)
downloadFreeBSD-src-6f864d0a973a7f3987d73132be311b7cfbd1ccfc.zip
FreeBSD-src-6f864d0a973a7f3987d73132be311b7cfbd1ccfc.tar.gz
Make ppp WARNS=5 clean
Diffstat (limited to 'usr.sbin/ppp/i4b.c')
-rw-r--r--usr.sbin/ppp/i4b.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/usr.sbin/ppp/i4b.c b/usr.sbin/ppp/i4b.c
index 5744e89..95c686f 100644
--- a/usr.sbin/ppp/i4b.c
+++ b/usr.sbin/ppp/i4b.c
@@ -91,7 +91,7 @@ struct i4bdevice {
#define device2i4b(d) ((d)->type == I4B_DEVICE ? (struct i4bdevice *)d : NULL)
-int
+unsigned
i4b_DeviceSize(void)
{
return sizeof(struct i4bdevice);
@@ -248,14 +248,14 @@ i4b_Free(struct physical *p)
free(dev);
}
-static int
+static unsigned
i4b_Speed(struct physical *p)
{
struct termios ios;
- int ret;
+ unsigned ret;
if (tcgetattr(p->fd, &ios) == -1 ||
- (ret = SpeedToInt(cfgetispeed(&ios))) == 0)
+ (ret = SpeedToUnsigned(cfgetispeed(&ios))) == 0)
ret = 64000;
return ret;
@@ -288,7 +288,7 @@ i4b_Slot(struct physical *p)
static void
i4b_device2iov(struct device *d, struct iovec *iov, int *niov,
- int maxiov, int *auxfd, int *nauxfd)
+ int maxiov __unused, int *auxfd __unused, int *nauxfd __unused)
{
struct i4bdevice *dev = device2i4b(d);
int sz = physical_MaxDeviceSize();
@@ -330,7 +330,7 @@ static struct device basei4bdevice = {
struct device *
i4b_iov2device(int type, struct physical *p, struct iovec *iov, int *niov,
- int maxiov, int *auxfd, int *nauxfd)
+ int maxiov __unused, int *auxfd __unused, int *nauxfd __unused)
{
if (type == I4B_DEVICE) {
struct i4bdevice *dev = (struct i4bdevice *)iov[(*niov)++].iov_base;
OpenPOWER on IntegriCloud