summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWim Taymans <wtaymans@redhat.com>2019-08-07 13:33:14 +0200
committerWim Taymans <wtaymans@redhat.com>2019-08-07 13:33:14 +0200
commit3ee9cbd57d9ed620e33991b287bc81b552be0514 (patch)
treeb556c79bb2e37fc59b0abd9773459ce6cffa24fe
parent7cbdaeb3b69fcbe65a223ec013b8fff10e66b391 (diff)
fix errno values
-rw-r--r--src/pipewire/control.c2
-rw-r--r--src/pipewire/pipewire.c2
-rw-r--r--src/pipewire/stream.c2
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;
}