fix errno values

This commit is contained in:
Wim Taymans 2019-08-07 13:33:14 +02:00
parent 7cbdaeb3b6
commit 3ee9cbd57d
3 changed files with 3 additions and 3 deletions

View file

@ -52,7 +52,7 @@ pw_control_new(struct pw_core *core,
direction = SPA_DIRECTION_OUTPUT;
break;
default:
errno = -ENOTSUP;
errno = ENOTSUP;
goto error_exit;
}

View file

@ -419,7 +419,7 @@ bool pw_debug_is_category_enabled(const char *name)
SPA_EXPORT
const char *pw_get_application_name(void)
{
errno = -ENOTSUP;
errno = ENOTSUP;
return NULL;
}

View file

@ -182,7 +182,7 @@ static struct param *add_param(struct pw_stream *stream,
int idx;
if (param == NULL || !spa_pod_is_object(param)) {
errno = -EINVAL;
errno = EINVAL;
return NULL;
}