X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fscpi%2Fscpi_vxi.c;h=e28a77a3d857587c9d8620576e8583d59a1dc0f8;hb=c05a0ba528e96671b1c94c1971d4671b4767f0e9;hp=e4efbf1d1d55cab2f55eb4cf91b638a66cc6ed4a;hpb=1a46cc62e2b528bcaeb1f8dc0c952a81b3bcba5c;p=libsigrok.git diff --git a/src/scpi/scpi_vxi.c b/src/scpi/scpi_vxi.c index e4efbf1d..e28a77a3 100644 --- a/src/scpi/scpi_vxi.c +++ b/src/scpi/scpi_vxi.c @@ -22,10 +22,10 @@ #include #include - #include "vxi.h" -#include "libsigrok.h" +#include #include "libsigrok-internal.h" +#include "scpi.h" #define LOG_PREFIX "scpi_vxi" #define VXI_DEFAULT_TIMEOUT_MS 2000 @@ -66,7 +66,7 @@ static int scpi_vxi_open(void *priv) Create_LinkResp *link_resp; vxi->client = clnt_create(vxi->address, DEVICE_CORE, DEVICE_CORE_VERSION, "tcp"); - if (vxi->client == NULL) { + if (!vxi->client) { sr_err("Client creation failed for %s", vxi->address); return SR_ERR; }