From 62cd82ec24951e4c15720844741c6491e7c3a1d8 Mon Sep 17 00:00:00 2001 From: John Birrell Date: Sun, 18 Nov 2007 00:33:23 +0000 Subject: [PATCH] Use a cast that doesn't create a compiler warning. --- sbin/spppcontrol/spppcontrol.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sbin/spppcontrol/spppcontrol.c b/sbin/spppcontrol/spppcontrol.c index a1df0f49942b..9cb84ab8e8df 100644 --- a/sbin/spppcontrol/spppcontrol.c +++ b/sbin/spppcontrol/spppcontrol.c @@ -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)");