Cast the ioctl define to the type of the variable being switched on.

This commit is contained in:
Matt Jacob 2007-06-10 04:53:13 +00:00
parent fc2ca23fa3
commit 8f054c6bd6
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=170490

View File

@ -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;