]> sigrok.org Git - libsigrok.git/blobdiff - src/ezusb.c
Build: Pass nostdinc option to automake
[libsigrok.git] / src / ezusb.c
index 034c6c9ebf9679e1ea2dd9ba230b251ae1c97c3f..465dab0360f4c72f3e6b601ad43c264aaac0ed91 100644 (file)
@@ -27,7 +27,7 @@
 #include <stdio.h>
 #include <errno.h>
 #include <string.h>
-#include "libsigrok.h"
+#include <libsigrok/libsigrok.h>
 #include "libsigrok-internal.h"
 
 #define LOG_PREFIX "ezusb"
@@ -57,7 +57,7 @@ SR_PRIV int ezusb_install_firmware(libusb_device_handle *hdl,
        unsigned char buf[4096];
 
        sr_info("Uploading firmware at %s", filename);
-       if ((fw = g_fopen(filename, "rb")) == NULL) {
+       if (!(fw = g_fopen(filename, "rb"))) {
                sr_err("Unable to open firmware file %s for reading: %s",
                       filename, strerror(errno));
                return SR_ERR;