From 86dee05aec330a0c2886c0327712153793ca46c4 Mon Sep 17 00:00:00 2001 From: Colin Guthrie Date: Tue, 3 Mar 2009 20:23:02 +0000 Subject: Use LGPL 2.1 on all files previously using LGPL 2 --- src/pulse/error.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/pulse/error.c') diff --git a/src/pulse/error.c b/src/pulse/error.c index d37084bb..3f2e70e0 100644 --- a/src/pulse/error.c +++ b/src/pulse/error.c @@ -6,7 +6,7 @@ PulseAudio is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published - by the Free Software Foundation; either version 2 of the License, + by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. PulseAudio is distributed in the hope that it will be useful, but -- cgit From 0dd8a3306f552c5f9d5fa69635df617ecf503b2f Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 4 Mar 2009 05:29:09 +0100 Subject: handle negative error codes --- src/pulse/error.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/pulse/error.c') diff --git a/src/pulse/error.c b/src/pulse/error.c index 3f2e70e0..9551d98e 100644 --- a/src/pulse/error.c +++ b/src/pulse/error.c @@ -68,7 +68,10 @@ const char*pa_strerror(int error) { pa_init_i18n(); - if (error < 0 || error >= PA_ERR_MAX) + if (error < 0) + error = -error; + + if (error >= PA_ERR_MAX) return NULL; return _(errortab[error]); -- cgit