Blink-IO.cpp: use mraa_result_t instead of int
authorBrendan Le Foll <brendan.le.foll@intel.com>
Fri, 4 Jul 2014 14:49:07 +0000 (15:49 +0100)
committerBrendan Le Foll <brendan.le.foll@intel.com>
Fri, 4 Jul 2014 14:49:07 +0000 (15:49 +0100)
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
examples/c++/Blink-IO.cpp

index 757bd6a..9ee1017 100644 (file)
@@ -59,7 +59,7 @@ int main (int argc, char **argv)
     if (gpio == NULL) {
         return MRAA_ERROR_UNSPECIFIED;
     }
-    int response = gpio->dir(mraa::DIR_OUT);
+    mraa_result_t response = gpio->dir(mraa::DIR_OUT);
     if (response != MRAA_SUCCESS) {
         mraa::printError(response);
         return 1;