From: Daniel Elstner Date: Fri, 7 Feb 2014 19:20:20 +0000 (+0100) Subject: scpi_visa: Add missing callback parameter. X-Git-Tag: libsigrok-0.3.0~148 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=d8b6b28b803ceabef12ac9ccc3f760d0ade70512;p=libsigrok.git scpi_visa: Add missing callback parameter. (scpi_visa_dev_inst_new): Fix serious compiler warning due to missing drvc parameter in prototype. --- 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;