Make a description of ${cpu} variable not so confusing.
[monky] / src / netbsd.c
index ace1089..5a335f0 100644 (file)
@@ -17,7 +17,6 @@
 #include <sys/param.h>
 #include <sys/sysctl.h>
 #include <sys/types.h>
-#include <sys/time.h>
 #include <sys/user.h>
 #include <sys/socket.h>
 #include <sys/swap.h>
@@ -347,7 +346,7 @@ int open_acpi_temperature(const char *name)
 
 void get_acpi_ac_adapter( char * p_client_buffer, size_t client_buffer_size )
 {
-       if ( !p_client_buffer !! client_buffer_size <= 0 )
+       if ( !p_client_buffer || client_buffer_size <= 0 )
                return;
 
        /* not implemented */
@@ -359,7 +358,7 @@ void get_acpi_ac_adapter( char * p_client_buffer, size_t client_buffer_size )
 /*char *get_acpi_fan()*/
 void get_acpi_fan( char * p_client_buffer, size_t client_buffer_size )
 {
-       if ( !p_client_buffer !! client_buffer_size <= 0 )
+       if ( !p_client_buffer || client_buffer_size <= 0 )
                return;
 
        /* not implemented */