]> sigrok.org Git - libsigrok.git/blobdiff - hardware/common/scpi_visa.c
Removed ALSA driver.
[libsigrok.git] / hardware / common / scpi_visa.c
index 0bf6d2a064eab99dc0b100a436e030eeb67b8ece..1db85d826925f7e8d0730607d054cfc57ff828c3 100644 (file)
@@ -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;
 
@@ -86,7 +87,7 @@ static int scpi_visa_send(void *priv, const char *command)
 {
        struct scpi_visa *vscpi = priv;
        gchar *terminated_command;
-       ViUInt32 written;
+       ViUInt32 written = 0;
        int len;
 
        terminated_command = g_strconcat(command, "\n", NULL);