Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Remove compiler warnings

Change-Id: I8548ddc02a32decfe8fc66d8dfb80e6466493b6c
  • Loading branch information...
commit 555eb70e7658c504e8b72feeea377b5ae8934c96 1 parent cf60238
@trondn trondn authored
Showing with 6 additions and 6 deletions.
  1. +1 −1  CMakeLists.txt
  2. +5 −5 sigar_port.c
View
2  CMakeLists.txt
@@ -1,6 +1,6 @@
CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
-INCLUDE_DIRECTORIES(BEFORE ${CMAKE_CURRENT_SOURCE_DIR}/../sigar/include)
+INCLUDE_DIRECTORIES(BEFORE ${CMAKE_SOURCE_DIR}/sigar/include)
ADD_EXECUTABLE(sigar_port sigar_port.c)
TARGET_LINK_LIBRARIES(sigar_port sigar)
View
10 sigar_port.c
@@ -69,8 +69,8 @@ struct system_stats {
struct proc_stats interesting_procs[NUM_INTERESTING_PROCS];
};
-int find_interesting_procs(sigar_t *sigar, sigar_pid_t parent,
- struct proc procs[NUM_INTERESTING_PROCS])
+static int find_interesting_procs(sigar_t *sigar, sigar_pid_t parent,
+ struct proc procs[NUM_INTERESTING_PROCS])
{
unsigned long i;
int found = 0;
@@ -113,9 +113,9 @@ int find_interesting_procs(sigar_t *sigar, sigar_pid_t parent,
return found;
}
-int populate_interesting_procs(sigar_t *sigar,
- struct proc *procs, int procs_count,
- struct system_stats *reply)
+static int populate_interesting_procs(sigar_t *sigar,
+ struct proc *procs, int procs_count,
+ struct system_stats *reply)
{
int i;
int stale = 0;
Please sign in to comment.
Something went wrong with that request. Please try again.