summaryrefslogtreecommitdiffstats
path: root/sys/dev/hptmv
diff options
context:
space:
mode:
authorcem <cem@FreeBSD.org>2015-11-07 23:05:23 +0000
committercem <cem@FreeBSD.org>2015-11-07 23:05:23 +0000
commitb559dbf961e8c0dde71d84725d17d8b982385ce9 (patch)
tree37d6e989e3a3f2759b552459b661dd0d470b2ab6 /sys/dev/hptmv
parent0948500dbf5639896e1b2d5c23beb1f33128de6a (diff)
downloadFreeBSD-src-b559dbf961e8c0dde71d84725d17d8b982385ce9.zip
FreeBSD-src-b559dbf961e8c0dde71d84725d17d8b982385ce9.tar.gz
hptmv(4): Fix broken sysctl(9) API assumptions
Sponsored by: EMC / Isilon Storage Division
Diffstat (limited to 'sys/dev/hptmv')
-rw-r--r--sys/dev/hptmv/hptproc.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/sys/dev/hptmv/hptproc.c b/sys/dev/hptmv/hptproc.c
index 7971e73..3981b71 100644
--- a/sys/dev/hptmv/hptproc.c
+++ b/sys/dev/hptmv/hptproc.c
@@ -51,9 +51,6 @@ int hpt_rescan_all(void);
static char hptproc_buffer[256];
extern char DRIVER_VERSION[];
-#define FORMAL_HANDLER_ARGS struct sysctl_oid *oidp, void *arg1, \
- intptr_t arg2, struct sysctl_req *req
-#define REAL_HANDLER_ARGS oidp, arg1, arg2, req
typedef struct sysctl_req HPT_GET_INFO;
static int
@@ -572,7 +569,7 @@ hpt_get_info(IAL_ADAPTER_T *pAdapter, HPT_GET_INFO *pinfo)
}
static __inline int
-hpt_proc_in(FORMAL_HANDLER_ARGS, int *len)
+hpt_proc_in(SYSCTL_HANDLER_ARGS, int *len)
{
int i, error=0;
@@ -590,12 +587,12 @@ hpt_proc_in(FORMAL_HANDLER_ARGS, int *len)
}
static int
-hpt_status(FORMAL_HANDLER_ARGS)
+hpt_status(SYSCTL_HANDLER_ARGS)
{
int length, error=0, retval=0;
IAL_ADAPTER_T *pAdapter;
- error = hpt_proc_in(REAL_HANDLER_ARGS, &length);
+ error = hpt_proc_in(oidp, arg1, arg2, req, &length);
if (req->newptr != NULL)
{
OpenPOWER on IntegriCloud