Use a cast that doesn't create a compiler warning.

This commit is contained in:
John Birrell 2007-11-18 00:33:23 +00:00
parent 13959da95c
commit 62cd82ec24

View File

@ -88,7 +88,7 @@ main(int argc, char **argv)
argc--;
argv++;
spr.cmd = (int)SPPPIOGDEFS;
spr.cmd = (uintptr_t) SPPPIOGDEFS;
ifr.ifr_data = (caddr_t)&spr;
if (ioctl(s, SIOCGIFGENERIC, &ifr) == -1)
@ -186,7 +186,7 @@ main(int argc, char **argv)
argc--;
}
spr.cmd = (int)SPPPIOSDEFS;
spr.cmd = (uintptr_t)SPPPIOSDEFS;
if (ioctl(s, SIOCSIFGENERIC, &ifr) == -1)
err(EX_OSERR, "SIOCSIFGENERIC(SPPPIOSDEFS)");