X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fscpi%2Fscpi.c;h=0efde8bab7b9c11f8d2cec00ee48f1afd0ecac4f;hb=98654c99daf85bd2a81a9c87f517e800c31e34f2;hp=e198b2bd296579d5fe89d14baf59c131489dae65;hpb=6433156c3275df933e4bf6dcfb020c91fca0ae86;p=libsigrok.git diff --git a/src/scpi/scpi.c b/src/scpi/scpi.c index e198b2bd..0efde8ba 100644 --- a/src/scpi/scpi.c +++ b/src/scpi/scpi.c @@ -17,6 +17,7 @@ * along with this program. If not, see . */ +#include #include #include #include @@ -209,7 +210,7 @@ SR_PRIV struct sr_scpi_dev_inst *scpi_dev_inst_new(struct drv_context *drvc, */ SR_PRIV int sr_scpi_open(struct sr_scpi_dev_inst *scpi) { - return scpi->open(scpi->priv); + return scpi->open(scpi); } /** @@ -351,7 +352,7 @@ SR_PRIV int sr_scpi_read_complete(struct sr_scpi_dev_inst *scpi) */ SR_PRIV int sr_scpi_close(struct sr_scpi_dev_inst *scpi) { - return scpi->close(scpi->priv); + return scpi->close(scpi); } /** @@ -606,7 +607,6 @@ SR_PRIV int sr_scpi_get_floatv(struct sr_scpi_dev_inst *scpi, gchar **ptr, **tokens; GArray *response_array; - ret = SR_OK; response = NULL; tokens = NULL; @@ -663,7 +663,6 @@ SR_PRIV int sr_scpi_get_uint8v(struct sr_scpi_dev_inst *scpi, gchar **ptr, **tokens; GArray *response_array; - ret = SR_OK; response = NULL; tokens = NULL;