From d3e6f897c1c422125d85e41f48bc34bda9578a16 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20St=C3=BCrz?= Date: Wed, 29 Oct 2014 14:18:42 +0100 Subject: [PATCH] fixed next gpio warning --- libguh/hardware/gpio.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libguh/hardware/gpio.cpp b/libguh/hardware/gpio.cpp index 41846b5f..6782259a 100644 --- a/libguh/hardware/gpio.cpp +++ b/libguh/hardware/gpio.cpp @@ -61,7 +61,7 @@ bool Gpio::exportGpio() return false; } - uint len = snprintf(buf, sizeof(buf), "%d", m_gpio); + ssize_t len = snprintf(buf, sizeof(buf), "%d", m_gpio); if(write(fd, buf, len) != len){ qDebug() << "ERROR: could not set edge interrupt"; close(fd); @@ -82,7 +82,7 @@ bool Gpio::unexportGpio() return false; } - uint len = snprintf(buf, sizeof(buf), "%d", m_gpio); + ssize_t len = snprintf(buf, sizeof(buf), "%d", m_gpio); if(write(fd, buf, len) != len){ qDebug() << "ERROR: could not set edge interrupt"; close(fd);