diff options
author | Marc Schink <jaylink-dev@marcschink.de> | 2016-04-22 22:49:06 +0200 |
---|---|---|
committer | Marc Schink <jaylink-dev@marcschink.de> | 2016-04-25 10:18:12 +0200 |
commit | f05eaf6712fc43d9731a7918d1e263806364c64b (patch) | |
tree | 2cf0e10939bba0cb460e490388f5c8ee339888be /libjaylink/jtag.c | |
parent | 356f801cdd733737cf09ad6a3765ebdc9ee9f4bb (diff) | |
download | libjaylink-f05eaf6712fc43d9731a7918d1e263806364c64b.zip libjaylink-f05eaf6712fc43d9731a7918d1e263806364c64b.tar.gz libjaylink-f05eaf6712fc43d9731a7918d1e263806364c64b.tar.bz2 |
Use 'bool' instead of 'int' for boolean values
Diffstat (limited to 'libjaylink/jtag.c')
-rw-r--r-- | libjaylink/jtag.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libjaylink/jtag.c b/libjaylink/jtag.c index 0896fd7..83fbf3c 100644 --- a/libjaylink/jtag.c +++ b/libjaylink/jtag.c @@ -18,6 +18,7 @@ */ #include <stdint.h> +#include <stdbool.h> #include "libjaylink.h" #include "libjaylink-internal.h" @@ -96,7 +97,7 @@ JAYLINK_API int jaylink_jtag_io(struct jaylink_device_handle *devh, ctx = devh->dev->ctx; ret = transport_start_write_read(devh, 4 + 2 * num_bytes, - read_length, 1); + read_length, true); if (ret != JAYLINK_OK) { log_err(ctx, "transport_start_write_read() failed: %i.", ret); @@ -174,7 +175,7 @@ JAYLINK_API int jaylink_jtag_clear_trst(struct jaylink_device_handle *devh) return JAYLINK_ERR_ARG; ctx = devh->dev->ctx; - ret = transport_start_write(devh, 1, 1); + ret = transport_start_write(devh, 1, true); if (ret != JAYLINK_OK) { log_err(ctx, "transport_start_write() failed: %i.", ret); @@ -213,7 +214,7 @@ JAYLINK_API int jaylink_jtag_set_trst(struct jaylink_device_handle *devh) return JAYLINK_ERR_ARG; ctx = devh->dev->ctx; - ret = transport_start_write(devh, 1, 1); + ret = transport_start_write(devh, 1, true); if (ret != JAYLINK_OK) { log_err(ctx, "transport_start_write() failed: %i.", ret); |