mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
Use a cast that doesn't create a compiler warning.
This commit is contained in:
parent
13959da95c
commit
62cd82ec24
1 changed files with 2 additions and 2 deletions
|
|
@ -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)");
|
||||
|
|
|
|||
Loading…
Reference in a new issue