diff options
author | Simon Cornish <[email protected]> | 2013-09-02 23:25:36 -0700 |
---|---|---|
committer | Simon Cornish <[email protected]> | 2013-09-02 23:25:36 -0700 |
commit | 8be8c20d33d67acb205a51897ea5284bc81605e7 (patch) | |
tree | 194b42e6a2f6dbe5523abb3181fbd9211697c9c6 /lib | |
parent | c141bd0521aca697e167b15a9b90f93b43da806a (diff) | |
download | otp-8be8c20d33d67acb205a51897ea5284bc81605e7.tar.gz otp-8be8c20d33d67acb205a51897ea5284bc81605e7.tar.bz2 otp-8be8c20d33d67acb205a51897ea5284bc81605e7.zip |
Fix some compiler warnings
Diffstat (limited to 'lib')
-rw-r--r-- | lib/os_mon/c_src/cpu_sup.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/os_mon/c_src/cpu_sup.c b/lib/os_mon/c_src/cpu_sup.c index 7372d5b0e8..22946eca0e 100644 --- a/lib/os_mon/c_src/cpu_sup.c +++ b/lib/os_mon/c_src/cpu_sup.c @@ -29,6 +29,7 @@ #include <stdio.h> #include <stdlib.h> #include <unistd.h> +#include <string.h> #if defined(__sun__) #include <kstat.h> @@ -120,7 +121,9 @@ typedef struct { static void util_measure(unsigned int **result_vec, int *result_sz); +#if defined(__sun__) static unsigned int misc_measure(char* name); +#endif static void send(unsigned int data); static void sendv(unsigned int data[], int ints); static void error(char* err_msg); @@ -140,7 +143,9 @@ int main(int argc, char** argv) { int rc; int sz; unsigned int *rv; +#if defined(__linux__) unsigned int no_of_cpus = 0; +#endif #if defined(__sun__) kstat_ctl = kstat_open(); |