diff options
Diffstat (limited to 'usr.sbin/mfiutil/mfi_evt.c')
-rw-r--r-- | usr.sbin/mfiutil/mfi_evt.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/mfiutil/mfi_evt.c b/usr.sbin/mfiutil/mfi_evt.c index dbf8272..cddb673 100644 --- a/usr.sbin/mfiutil/mfi_evt.c +++ b/usr.sbin/mfiutil/mfi_evt.c @@ -32,6 +32,7 @@ #include <sys/types.h> #include <sys/errno.h> #include <err.h> +#include <fcntl.h> #include <stdio.h> #include <stdlib.h> #include <strings.h> @@ -73,7 +74,7 @@ show_logstate(int ac, char **av) return (EINVAL); } - fd = mfi_open(mfi_unit); + fd = mfi_open(mfi_unit, O_RDWR); if (fd < 0) { error = errno; warn("mfi_open"); @@ -541,7 +542,7 @@ show_events(int ac, char **av) int ch, error, fd, num_events, verbose; u_int i; - fd = mfi_open(mfi_unit); + fd = mfi_open(mfi_unit, O_RDWR); if (fd < 0) { error = errno; warn("mfi_open"); |