From: Florian Forster Date: Mon, 23 Oct 2006 11:43:22 +0000 (+0200) Subject: processes plugin: Only define `ps_list_register' if it is actually used. X-Git-Tag: collectd-3.11.0~61^2^2 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=9b3c5eb42021a7043fd0f4d452807df1a6ba877d;p=collectd.git processes plugin: Only define `ps_list_register' if it is actually used. --- diff --git a/src/processes.c b/src/processes.c index cb6bb487..619b6e37 100644 --- a/src/processes.c +++ b/src/processes.c @@ -203,6 +203,11 @@ static mach_msg_type_number_t pset_list_len; static long pagesize_g; #endif /* KERNEL_LINUX */ +#if HAVE_THREAD_INFO +/* ps_list_* not used yet */ +/* #endif HAVE_THREAD_INFO */ + +#elif KERNEL_LINUX static void ps_list_register (const char *name) { procstat_t *new; @@ -399,6 +404,7 @@ static void ps_list_reset (void) } /* while (pse != NULL) */ } /* for (ps = list_head_g; ps != NULL; ps = ps->next) */ } +#endif /* KERNEL_LINUX */ static int ps_config (char *key, char *value) {