fix unused variable warnings.

This commit is contained in:
christos
2013-10-19 17:16:37 +00:00
parent becb6b8fff
commit f73ad3bad9
2 changed files with 26 additions and 30 deletions

View File

@@ -1,4 +1,4 @@
/* $NetBSD: mopprobe.c,v 1.11 2011/08/30 19:49:11 joerg Exp $ */
/* $NetBSD: mopprobe.c,v 1.12 2013/10/19 17:16:37 christos Exp $ */
/*
* Copyright (c) 1993-96 Mats O Jansson. All rights reserved.
@@ -26,7 +26,7 @@
#include <sys/cdefs.h>
#ifndef lint
__RCSID("$NetBSD: mopprobe.c,v 1.11 2011/08/30 19:49:11 joerg Exp $");
__RCSID("$NetBSD: mopprobe.c,v 1.12 2013/10/19 17:16:37 christos Exp $");
#endif
/*
@@ -128,7 +128,7 @@ void
mopProcess(struct if_info *ii, u_char *pkt)
{
u_char *dst, *src, *p, mopcode, tmpc, ilen;
u_short *ptype, moplen, tmps, itype, len;
u_short *ptype, moplen, itype, len;
int idx, i, device, trans;
dst = pkt;
@@ -177,7 +177,7 @@ mopProcess(struct if_info *ii, u_char *pkt)
}
tmpc = mopGetChar(pkt,&idx); /* Reserved */
tmps = mopGetShort(pkt,&idx); /* Receipt # */
(void)mopGetShort(pkt,&idx); /* Receipt # */
device = 0; /* Unknown Device */