X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fprocesses.c;h=d0d736154281f7f9819825d346c1a16b1e44b45d;hb=5c2993e4121feae745551be182221b31bc23ff97;hp=aca23697be20a25a4ed1676c2218966726bd59ae;hpb=24eddd92ceeed442840e52c1c4163e0c7ca01456;p=collectd.git diff --git a/src/processes.c b/src/processes.c index aca23697..d0d73615 100644 --- a/src/processes.c +++ b/src/processes.c @@ -1001,7 +1001,7 @@ static procstat_t *ps_read_io (long pid, procstat_t *ps) return (ps); } /* procstat_t *ps_read_io */ -int ps_read_process (long pid, procstat_t *ps, char *state) +static int ps_read_process (long pid, procstat_t *ps, char *state) { char filename[64]; char buffer[1024]; @@ -1255,7 +1255,7 @@ static char *ps_get_cmdline (long pid, char *name, char *buf, size_t buf_len) return buf; } /* char *ps_get_cmdline (...) */ -static int read_fork_rate () +static int read_fork_rate (void) { FILE *proc_stat; char buffer[1024]; @@ -1450,7 +1450,7 @@ static int ps_read_process(long pid, procstat_t *ps, char *state) * are retrieved from kstat (module cpu, name sys, class misc, stat nthreads). * The result is the sum for all the threads created on each cpu */ -static int read_fork_rate() +static int read_fork_rate (void) { extern kstat_ctl_t *kc; kstat_t *ksp_chain = NULL;