From: Sebastien GODARD Date: Mon, 10 Jan 2022 17:35:11 +0000 (+0100) Subject: count.c: Move SOURCE_SADC macro definition X-Git-Tag: v12.5.6~44^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5781102b0d3f6d118ef30389fa46933dc00dabd5;p=sysstat count.c: Move SOURCE_SADC macro definition Function get_diskstats_dev_nr() is used only by sadc. Signed-off-by: Sebastien GODARD --- diff --git a/count.c b/count.c index 1a520a4..0c49be0 100644 --- a/count.c +++ b/count.c @@ -221,6 +221,9 @@ __nr_t get_irqcpu_nr(char *file, int max_nr_irqcpu, int cpu_nr) return irq; } +#ifdef SOURCE_SADC +/*---------------- BEGIN: FUNCTIONS USED BY SADC ONLY ---------------------*/ + /* *************************************************************************** * Find number of devices and partitions available in /proc/diskstats. @@ -271,9 +274,6 @@ __nr_t get_diskstats_dev_nr(int count_part, int only_used_dev) return dev; } -#ifdef SOURCE_SADC -/*---------------- BEGIN: FUNCTIONS USED BY SADC ONLY ---------------------*/ - /* *************************************************************************** * Find number of serial lines that support tx/rx accounting