aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/ppp/chat.c
diff options
context:
space:
mode:
authorBrian Somers <brian@FreeBSD.org>2004-09-05 01:46:52 +0000
committerBrian Somers <brian@FreeBSD.org>2004-09-05 01:46:52 +0000
commit057f1760a8171825b260dad27502f74ed5f69faf (patch)
treefb5af1860e245ef67196527d9ba46e5c9e284bf6 /usr.sbin/ppp/chat.c
parent3f61368f03d40932bd1fbe095678fd44de5c8490 (diff)
Make ppp WARNS=5 clean
Notes
Notes: svn path=/head/; revision=134789
Diffstat (limited to 'usr.sbin/ppp/chat.c')
-rw-r--r--usr.sbin/ppp/chat.c8
1 files changed, 5 insertions, 3 deletions
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;