From d8b6b28b803ceabef12ac9ccc3f760d0ade70512 Mon Sep 17 00:00:00 2001 From: Daniel Elstner Date: Fri, 7 Feb 2014 20:20:20 +0100 Subject: [PATCH] scpi_visa: Add missing callback parameter. (scpi_visa_dev_inst_new): Fix serious compiler warning due to missing drvc parameter in prototype. --- hardware/common/scpi_visa.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/hardware/common/scpi_visa.c b/hardware/common/scpi_visa.c index 0bf6d2a0..2e7e26fd 100644 --- a/hardware/common/scpi_visa.c +++ b/hardware/common/scpi_visa.c @@ -31,11 +31,12 @@ struct scpi_visa { ViSession vi; }; -static int scpi_visa_dev_inst_new(void *priv, const char *resource, - char **params, const char *serialcomm) +static int scpi_visa_dev_inst_new(void *priv, struct drv_context *drvc, + const char *resource, char **params, const char *serialcomm) { struct scpi_visa *vscpi = priv; + (void)drvc; (void)resource; (void)serialcomm;