1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-29 12:03:03 +00:00

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
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=173717

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)");