From 8f054c6bd6f3115252ca120b3f8596a62e5c7f5a Mon Sep 17 00:00:00 2001 From: Matt Jacob Date: Sun, 10 Jun 2007 04:53:13 +0000 Subject: [PATCH] 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(-) diff --git a/sys/net/if_spppsubr.c b/sys/net/if_spppsubr.c index 6071e060395d..9d8239915562 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;