From fe3b2c768db222cede610045a960d1d59f44c250 Mon Sep 17 00:00:00 2001 From: smathis Date: Thu, 25 Jun 2026 08:01:49 +0200 Subject: [PATCH] Fixed pointer to pointer type in init function --- device/mitcpresscio.cxx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/device/mitcpresscio.cxx b/device/mitcpresscio.cxx index 7486a6b..7269326 100644 --- a/device/mitcpresscio.cxx +++ b/device/mitcpresscio.cxx @@ -172,7 +172,7 @@ INT mitc_pressc_get_name(MITCPRESSC_INFO * , INT , char *); /* the init function creates a ODB record which contains the settings and initialized its variables as well as the bus driver */ -INT mitc_pressc_init(HNDLE hkey, void **pinfo, INT channels) { +INT mitc_pressc_init(HNDLE hkey, MITCPRESSC_INFO **pinfo, INT channels) { int i,status, size, len; HNDLE hDB, hkeydd; MITCPRESSC_INFO *info; @@ -1202,6 +1202,7 @@ INT mitc_presscio(INT cmd, ...) { float value, *pvalue; void *info, *bd; char *name; + MITCPRESSC_INFO **pinfo; va_start(argptr, cmd); status = FE_SUCCESS; @@ -1209,10 +1210,10 @@ INT mitc_presscio(INT cmd, ...) { switch (cmd) { case CMD_INIT: hKey = va_arg(argptr, HNDLE); - info = va_arg(argptr, void *); + pinfo = va_arg(argptr, MITCPRESSC_INFO **); channel = va_arg(argptr, INT); flags = va_arg(argptr, DWORD); - status = mitc_pressc_init(hKey, &info, channel); + status = mitc_pressc_init(hKey, pinfo, channel); break; case CMD_EXIT: