Private
Public Access
2
0

types: Remove MRAA_ERROR_PLATFORM_ALREADY_INITIALISED

Enum was deprecated in 0.10.x and causes issues with strict C89 compliance so
is now removed

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
Brendan Le Foll
2016-04-15 14:01:23 +01:00
parent 2404b0a683
commit acf90073a8
3 changed files with 2 additions and 4 deletions

View File

@@ -90,7 +90,7 @@ mraa_result_t
imraa_init()
{
if (plat != NULL) {
return MRAA_ERROR_PLATFORM_ALREADY_INITIALISED;
return MRAA_SUCCESS;
}
uid_t proc_euid = geteuid();
@@ -187,7 +187,7 @@ mraa_result_t __attribute__((constructor))
mraa_init()
{
if (plat != NULL) {
return MRAA_ERROR_PLATFORM_ALREADY_INITIALISED;
return MRAA_SUCCESS;
} else {
return imraa_init();
}