Enlightenment CVS committal

Author  : ravenlock
Project : e_modules
Module  : cpu

Dir     : e_modules/cpu


Modified Files:
        e_mod_main.c 


Log Message:
warnings--

===================================================================
RCS file: /cvs/e/e_modules/cpu/e_mod_main.c,v
retrieving revision 1.42
retrieving revision 1.43
diff -u -3 -r1.42 -r1.43
--- e_mod_main.c        31 Oct 2007 12:32:24 -0000      1.42
+++ e_mod_main.c        3 Nov 2007 03:01:30 -0000       1.43
@@ -237,13 +237,14 @@
 static int
 _get_cpu_count(void)
 {
-   FILE *f;
-   char tmp[4];
    int cpu = -1;
 
 #ifdef __FreeBSD__
    cpu = 1;
 #else
+   FILE *f;
+   char tmp[4];
+
    if (!(f = fopen("/proc/stat", "r"))) return cpu;
 
    while (fscanf(f, "cp%s %*u %*u %*u %*u %*u %*u %*u %*u\n", (char *) &tmp) 
== 1)



-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to