diff options
author | Daniel Mack <daniel@caiaq.de> | 2009-12-10 15:42:40 +0800 |
---|---|---|
committer | Daniel Mack <daniel@caiaq.de> | 2009-12-16 16:11:40 +0800 |
commit | f452c6cdd9e5717340807478d759ef5a03b55f1f (patch) | |
tree | 27dbcf6846c852637fb00328251a4251bf43d556 /src/pulsecore/core-util.c | |
parent | 0ccc7afcd8cf77346568ffbf9a8b2e0b3ce2ea0e (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.c | 4 |
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; |