]> code.delx.au - pulseaudio/blobdiff - src/pulsecore/core-util.c
fix a number of warnings
[pulseaudio] / src / pulsecore / core-util.c
index d596c481a9b3c1f5336867b8854b2b9a3a34fbcc..b64c51e18fb71d2a111b0a0236bc81bc5d849950 100644 (file)
@@ -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;