diff options
author | dwhite <dwhite@FreeBSD.org> | 2007-06-08 22:00:56 +0000 |
---|---|---|
committer | dwhite <dwhite@FreeBSD.org> | 2007-06-08 22:00:56 +0000 |
commit | 2d2f8bcbc25ab51ebc8022eaf09d645b191f8051 (patch) | |
tree | a4a64f0002d76e821639dfc7784a855ad5e2d522 /sys/dev | |
parent | aaf6958cc0666a34d317ae826cbacae6105f0683 (diff) | |
download | FreeBSD-src-2d2f8bcbc25ab51ebc8022eaf09d645b191f8051.zip FreeBSD-src-2d2f8bcbc25ab51ebc8022eaf09d645b191f8051.tar.gz |
Don't cast the command argument to ether_ioctl() to an int since its not an
int anymore. This was causing all sorts of bad behavior when booting a system
with an nve interface present.
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/nve/if_nve.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/nve/if_nve.c b/sys/dev/nve/if_nve.c index 76e1630..21eafe4 100644 --- a/sys/dev/nve/if_nve.c +++ b/sys/dev/nve/if_nve.c @@ -1040,7 +1040,7 @@ nve_ioctl(struct ifnet *ifp, u_long command, caddr_t data) default: /* Everything else we forward to generic ether ioctl */ - error = ether_ioctl(ifp, (int)command, data); + error = ether_ioctl(ifp, command, data); break; } |