From 057f1760a8171825b260dad27502f74ed5f69faf Mon Sep 17 00:00:00 2001 From: Brian Somers Date: Sun, 5 Sep 2004 01:46:52 +0000 Subject: Make ppp WARNS=5 clean --- usr.sbin/ppp/chat.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'usr.sbin/ppp/chat.c') diff --git a/usr.sbin/ppp/chat.c b/usr.sbin/ppp/chat.c index 79e41ea1a974..7e2748719274 100644 --- a/usr.sbin/ppp/chat.c +++ b/usr.sbin/ppp/chat.c @@ -370,7 +370,8 @@ chat_UpdateLog(struct chat *c, int in) } static void -chat_Read(struct fdescriptor *d, struct bundle *bundle, const fd_set *fdset) +chat_Read(struct fdescriptor *d, struct bundle *bundle __unused, + const fd_set *fdset __unused) { struct chat *c = descriptor2chat(d); @@ -384,7 +385,7 @@ chat_Read(struct fdescriptor *d, struct bundle *bundle, const fd_set *fdset) * swallow any ppp talk from the peer ? */ in = BUFLEFT(c); - if (in > sizeof c->buf / 2) + if (in > (ssize_t)sizeof c->buf / 2) in = sizeof c->buf / 2; in = physical_Read(c->physical, c->bufend, in); @@ -484,7 +485,8 @@ chat_Read(struct fdescriptor *d, struct bundle *bundle, const fd_set *fdset) } static int -chat_Write(struct fdescriptor *d, struct bundle *bundle, const fd_set *fdset) +chat_Write(struct fdescriptor *d, struct bundle *bundle __unused, + const fd_set *fdset __unused) { struct chat *c = descriptor2chat(d); int result = 0; -- cgit v1.2.3