Private
Public Access
2
0

libmraa: Fix compilation warnings about unsigned ints

Make better use of unsigned/signed ints, signed ints are preffered unless there
is a good reason not to.

Signed-off-by: Alexandru Timohi <alexandru.timohi@intel.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
Alexandru Timohi
2016-05-19 11:49:25 +01:00
committed by Brendan Le Foll
parent 022b36355f
commit 828338a69a
5 changed files with 19 additions and 19 deletions

View File

@@ -284,7 +284,7 @@ mraa_iio_write_string(mraa_iio_context dev, const char* attr_name, const char* d
snprintf(buf, MAX_SIZE, IIO_SYSFS_DEVICE "%d/%s", dev->num, attr_name);
int fd = open(buf, O_WRONLY);
if (fd != -1) {
size_t len = strlen(data);
int len = strlen(data);
ssize_t status = write(fd, data, len);
if (status == len)
result = MRAA_SUCCESS;

View File

@@ -217,7 +217,7 @@ mraa_deinit()
}
int
mraa_set_priority(const unsigned int priority)
mraa_set_priority(const int priority)
{
struct sched_param sched_s;
@@ -282,7 +282,7 @@ mraa_iio_detect()
mraa_result_t
mraa_setup_mux_mapped(mraa_pin_t meta)
{
int mi;
unsigned int mi;
mraa_result_t ret;
mraa_gpio_context mux_i = NULL;
int last_pin = -1;
@@ -675,7 +675,7 @@ mraa_get_i2c_bus_count()
}
int
mraa_get_i2c_bus_id(unsigned i2c_bus)
mraa_get_i2c_bus_id(int i2c_bus)
{
if (plat == NULL) {
return -1;