summaryrefslogtreecommitdiffstats
path: root/src/pulsecore/core-util.c
diff options
context:
space:
mode:
authorDaniel Mack <daniel@caiaq.de>2009-12-10 15:43:58 +0800
committerLennart Poettering <lennart@poettering.net>2010-01-05 22:46:13 +0100
commit937c587e7720ee27b36fe736a2aa1cfd233270ec (patch)
tree2a27eb73a340d0175a667eba34d2b773b82df75f /src/pulsecore/core-util.c
parent6faf38313e5f313cbcfe5c78af1dd310131798d2 (diff)
fix a number of warnings
most of them were due to missing #ifdefs or wrong printf format type for [s]size_t.
Diffstat (limited to 'src/pulsecore/core-util.c')
-rw-r--r--src/pulsecore/core-util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pulsecore/core-util.c b/src/pulsecore/core-util.c
index d596c481..b64c51e1 100644
--- a/src/pulsecore/core-util.c
+++ b/src/pulsecore/core-util.c
@@ -580,8 +580,8 @@ char *pa_strlcpy(char *b, const char *s, size_t l) {
static int set_scheduler(int rtprio) {
struct sched_param sp;
- int r;
#ifdef HAVE_DBUS
+ int r;
DBusError error;
DBusConnection *bus;
@@ -628,7 +628,7 @@ static int set_scheduler(int rtprio) {
errno = -r;
#else
- errno = r;
+ errno = 0;
#endif
return -1;