From 4698037127234416be7866d520f1f411c5238e2f Mon Sep 17 00:00:00 2001 From: mjacob Date: Sun, 10 Jun 2007 04:53:13 +0000 Subject: Cast the ioctl define to the type of the variable being switched on. --- sys/net/if_spppsubr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/net/if_spppsubr.c') diff --git a/sys/net/if_spppsubr.c b/sys/net/if_spppsubr.c index 6071e06..9d82399 100644 --- a/sys/net/if_spppsubr.c +++ b/sys/net/if_spppsubr.c @@ -5176,7 +5176,7 @@ sppp_params(struct sppp *sp, u_long cmd, void *data) } switch (subcmd) { - case (int)SPPPIOGDEFS: + case (u_long)SPPPIOGDEFS: if (cmd != SIOCGIFGENERIC) { rv = EINVAL; break; @@ -5211,7 +5211,7 @@ sppp_params(struct sppp *sp, u_long cmd, void *data) sizeof(struct spppreq)); break; - case (int)SPPPIOSDEFS: + case (u_long)SPPPIOSDEFS: if (cmd != SIOCSIFGENERIC) { rv = EINVAL; break; -- cgit v1.1