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;