aboutsummaryrefslogtreecommitdiffstats
path: root/sbin/spppcontrol
diff options
context:
space:
mode:
authorJohn Birrell <jb@FreeBSD.org>2007-11-18 00:33:23 +0000
committerJohn Birrell <jb@FreeBSD.org>2007-11-18 00:33:23 +0000
commit62cd82ec24951e4c15720844741c6491e7c3a1d8 (patch)
treed36192a4f037d1c763dfade0e955340f75b26c45 /sbin/spppcontrol
parent13959da95cf7b0102523a270f57759a669b595c2 (diff)
downloadsrc-62cd82ec24951e4c15720844741c6491e7c3a1d8.tar.gz
src-62cd82ec24951e4c15720844741c6491e7c3a1d8.zip
Use a cast that doesn't create a compiler warning.
Notes
Notes: svn path=/head/; revision=173717
Diffstat (limited to 'sbin/spppcontrol')
-rw-r--r--sbin/spppcontrol/spppcontrol.c4
1 files 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)");