Private
Public Access
2
0

mraa.c: make mraa_get_platform_name use a const char

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
Brendan Le Foll
2016-01-20 15:58:28 +00:00
parent bdb5ef66e9
commit 0aed0003ff
4 changed files with 12 additions and 8 deletions

View File

@@ -33,7 +33,7 @@ main(int argc, char** argv)
{
mraa_platform_t platform = mraa_get_platform_type();
mraa_gpio_context gpio, gpio_in = NULL;
char* board_name = mraa_get_platform_name();
const char* board_name = mraa_get_platform_name();
int ledstate = 0;
switch (platform) {

View File

@@ -31,7 +31,7 @@
int
main(int argc, char** argv)
{
char* board_name = mraa_get_platform_name();
const char* board_name = mraa_get_platform_name();
int i2c_bus, i, i2c_adapter;
fprintf(stdout, "hello mraa\n Version: %s\n Running on %s\n", mraa_get_version(), board_name);