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:
committed by
Brendan Le Foll
parent
022b36355f
commit
828338a69a
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user