[pulseaudio-commits] r2314 - /branches/glitch-free/src/daemon/cpulimit.c

svnmailer-noreply at 0pointer.de svnmailer-noreply at 0pointer.de
Thu May 1 11:57:18 PDT 2008


Author: lennart
Date: Thu May  1 20:57:18 2008
New Revision: 2314

URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=2314&root=pulseaudio&view=rev
Log:
a bit of pa_bool_t'ization

Modified:
    branches/glitch-free/src/daemon/cpulimit.c

Modified: branches/glitch-free/src/daemon/cpulimit.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/branches/glitch-free/src/daemon/cpulimit.c?rev=2314&root=pulseaudio&r1=2313&r2=2314&view=diff
==============================================================================
--- branches/glitch-free/src/daemon/cpulimit.c (original)
+++ branches/glitch-free/src/daemon/cpulimit.c Thu May  1 20:57:18 2008
@@ -82,7 +82,7 @@
 static struct sigaction sigaction_prev;
 
 /* Nonzero after pa_cpu_limit_init() */
-static int installed = 0;
+static pa_bool_t installed = FALSE;
 
 /* The current state of operation */
 static enum  {
@@ -210,7 +210,7 @@
         return -1;
     }
 
-    installed = 1;
+    installed = TRUE;
 
     reset_cpu_time(CPUTIME_INTERVAL_SOFT);
 
@@ -231,7 +231,7 @@
 
     if (installed) {
         pa_assert_se(sigaction(SIGXCPU, &sigaction_prev, NULL) >= 0);
-        installed = 0;
+        installed = FALSE;
     }
 }
 




More information about the pulseaudio-commits mailing list