X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Ffx2lafw%2Fapi.c;h=4a80b57494d5adb2ba72d7505b56ddd3ac6b822a;hb=803db07a1af036a5da65581ddbac23b7f84a4388;hp=6376d0fb43103cc64a3ead264c90eaf5510028a7;hpb=a5c38703eeea8661e563c30631601b8334dd2b7c;p=libsigrok.git diff --git a/src/hardware/fx2lafw/api.c b/src/hardware/fx2lafw/api.c index 6376d0fb..4a80b574 100644 --- a/src/hardware/fx2lafw/api.c +++ b/src/hardware/fx2lafw/api.c @@ -113,7 +113,7 @@ static const struct fx2lafw_profile supported_fx2[] = { "fx2lafw-sigrok-fx2-16ch.fw", DEV_CAPS_16BIT, NULL, NULL }, - { 0, 0, 0, 0, 0, 0, 0, 0, 0 } + ALL_ZERO }; static const uint32_t drvopts[] = { @@ -374,7 +374,7 @@ static int dev_open(struct sr_dev_inst *sdi) struct sr_dev_driver *di = sdi->driver; struct sr_usb_dev_inst *usb; struct dev_context *devc; - char *fpga_firmware = NULL; + const char *fpga_firmware = NULL; int ret; int64_t timediff_us, timediff_ms;