mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-23 11:18:54 +00:00
"pointers are not permitted as case values", so force the macros to ints.
This commit is contained in:
parent
90a78bd0ba
commit
addbf23d05
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=95848
@ -5029,7 +5029,7 @@ sppp_params(struct sppp *sp, u_long cmd, void *data)
|
||||
}
|
||||
|
||||
switch (subcmd) {
|
||||
case SPPPIOGDEFS:
|
||||
case (int)SPPPIOGDEFS:
|
||||
if (cmd != SIOCGIFGENERIC) {
|
||||
rv = EINVAL;
|
||||
break;
|
||||
@ -5064,7 +5064,7 @@ sppp_params(struct sppp *sp, u_long cmd, void *data)
|
||||
sizeof(struct spppreq));
|
||||
break;
|
||||
|
||||
case SPPPIOSDEFS:
|
||||
case (int)SPPPIOSDEFS:
|
||||
if (cmd != SIOCSIFGENERIC) {
|
||||
rv = EINVAL;
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user