Commit 262a62f3 authored by Ben Avison's avatar Ben Avison
Browse files

Minor changes required in order to build with cc 5.55.

Tagged as 'Internet-5_43a'
parent 540839dd
......@@ -406,7 +406,7 @@ int ifconfig(int argc, char *argv[], int af, struct afswtch *rafp,
#define DSTADDR 3
/*ARGSUSED*/
void setifaddr(char *addr, short param)
void setifaddr(char *addr, int param)
{
/*
* Delay the ioctl to set the interface addr until flags are all set.
......@@ -475,14 +475,15 @@ void setifdstaddr(char *addr, int param)
(*afp->af_getaddr)(addr, DSTADDR);
}
void setifflags(char *vname, short value)
void setifflags(char *vname, int value)
{
if (ioctl(s, SIOCGIFFLAGS, (caddr_t)&ifr) < 0) {
Perror("ioctl (SIOCGIFFLAGS)");
exit(1);
}
value = (short) value;
if (ioctl(s, SIOCGIFFLAGS, (caddr_t)&ifr) < 0) {
Perror("ioctl (SIOCGIFFLAGS)");
exit(1);
}
strncpy(ifr.ifr_name, name, sizeof (ifr.ifr_name));
flags = ifr.ifr_flags;
flags = ifr.ifr_flags;
if (value < 0) {
value = -value;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment