mbus_connect() and mbus_disconnect() return 0 on success and -1 otherwise

This commit is contained in:
jakubovsky
2012-07-09 12:33:32 +02:00
parent 5f9052b284
commit b95f29fcc8
12 changed files with 21 additions and 21 deletions

View File

@ -1408,7 +1408,7 @@ mbus_connect(mbus_handle * handle)
if (handle == NULL)
{
MBUS_ERROR("%s: Invalid M-Bus handle for disconnect.\n", __PRETTY_FUNCTION__);
return 0;
return -1;
}
return handle->open(handle);
@ -1420,7 +1420,7 @@ mbus_disconnect(mbus_handle * handle)
if (handle == NULL)
{
MBUS_ERROR("%s: Invalid M-Bus handle for disconnect.\n", __PRETTY_FUNCTION__);
return 0;
return -1;
}
return handle->close(handle);