From 3ee9cbd57d9ed620e33991b287bc81b552be0514 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Wed, 7 Aug 2019 13:33:14 +0200 Subject: fix errno values --- src/pipewire/control.c | 2 +- src/pipewire/pipewire.c | 2 +- src/pipewire/stream.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pipewire/control.c b/src/pipewire/control.c index db83b636..80e535ab 100644 --- a/src/pipewire/control.c +++ b/src/pipewire/control.c @@ -52,7 +52,7 @@ pw_control_new(struct pw_core *core, direction = SPA_DIRECTION_OUTPUT; break; default: - errno = -ENOTSUP; + errno = ENOTSUP; goto error_exit; } diff --git a/src/pipewire/pipewire.c b/src/pipewire/pipewire.c index bbcc9137..c1354e23 100644 --- a/src/pipewire/pipewire.c +++ b/src/pipewire/pipewire.c @@ -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; } diff --git a/src/pipewire/stream.c b/src/pipewire/stream.c index ffd34388..e96925c7 100644 --- a/src/pipewire/stream.c +++ b/src/pipewire/stream.c @@ -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; } -- cgit v1.2.3