projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lint and wnj changes
[unix-history]
/
usr
/
src
/
sys
/
net
/
if.c
diff --git
a/usr/src/sys/net/if.c
b/usr/src/sys/net/if.c
index
c47f2b3
..
6b22145
100644
(file)
--- a/
usr/src/sys/net/if.c
+++ b/
usr/src/sys/net/if.c
@@
-1,4
+1,4
@@
-/* if.c 4.2
7 83/03/19
*/
+/* if.c 4.2
8 83/05/27
*/
#include "../h/param.h"
#include "../h/systm.h"
#include "../h/param.h"
#include "../h/systm.h"
@@
-194,7
+194,8
@@
ifrequest(cmd, data)
return (ENXIO); /* couldn't find unit */
unit = *cp - '0', *cp = 0;
for (ifp = ifnet; ifp; ifp = ifp->if_next) {
return (ENXIO); /* couldn't find unit */
unit = *cp - '0', *cp = 0;
for (ifp = ifnet; ifp; ifp = ifp->if_next) {
- if (bcmp(ifp->if_name, ifr->ifr_name, cp - ifr->ifr_name))
+ if (bcmp(ifp->if_name, ifr->ifr_name,
+ (unsigned)(cp - ifr->ifr_name)))
continue;
if (unit == ifp->if_unit)
goto found;
continue;
if (unit == ifp->if_unit)
goto found;
@@
-256,6
+257,7
@@
found:
* in later ioctl's (above) to get
* other information.
*/
* in later ioctl's (above) to get
* other information.
*/
+/*ARGSUSED*/
ifconf(cmd, data)
int cmd;
caddr_t data;
ifconf(cmd, data)
int cmd;
caddr_t data;