From: Uwe Hermann Date: Mon, 27 Feb 2012 22:53:44 +0000 (+0100) Subject: sr: fx2lafw: Use gboolean consistenly. X-Git-Tag: libsigrok-0.1.0~82 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=f9a69557d276ee27d551eb9ef68f2700324613b4;p=libsigrok.git sr: fx2lafw: Use gboolean consistenly. --- diff --git a/hardware/fx2lafw/fx2lafw.c b/hardware/fx2lafw/fx2lafw.c index 170e3baa..5bb7b7af 100644 --- a/hardware/fx2lafw/fx2lafw.c +++ b/hardware/fx2lafw/fx2lafw.c @@ -19,7 +19,6 @@ #include #include -#include #include #include #include @@ -83,15 +82,15 @@ static int hw_dev_acquisition_stop(int dev_index, gpointer session_dev_id); /** * Check the USB configuration to determine if this is an fx2lafw device. * - * @return true if the device's configuration profile match fx2lafw - * configuration, false otherwise. + * @return TRUE if the device's configuration profile match fx2lafw + * configuration, FALSE otherwise. */ -static bool check_conf_profile(libusb_device *dev) +static gboolean check_conf_profile(libusb_device *dev) { struct libusb_device_descriptor des; struct libusb_config_descriptor *conf_dsc = NULL; const struct libusb_interface_descriptor *intf_dsc; - bool ret = false; + gboolean ret = FALSE; while (!ret) { /* Assume it's not a Saleae Logic unless proven wrong. */ @@ -133,7 +132,7 @@ static bool check_conf_profile(libusb_device *dev) /* TODO: Check the debug channel... */ /* If we made it here, it must be an fx2lafw. */ - ret = true; + ret = TRUE; } if (conf_dsc)