From 937c587e7720ee27b36fe736a2aa1cfd233270ec Mon Sep 17 00:00:00 2001 From: Daniel Mack Date: Thu, 10 Dec 2009 15:43:58 +0800 Subject: fix a number of warnings most of them were due to missing #ifdefs or wrong printf format type for [s]size_t. --- src/pulsecore/core-util.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/pulsecore/core-util.c') 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; -- cgit