]> granicus.if.org Git - sysstat/commitdiff
count.c: Move SOURCE_SADC macro definition
authorSebastien GODARD <sysstat@users.noreply.github.com>
Mon, 10 Jan 2022 17:35:11 +0000 (18:35 +0100)
committerSebastien GODARD <sysstat@users.noreply.github.com>
Mon, 10 Jan 2022 17:35:11 +0000 (18:35 +0100)
Function get_diskstats_dev_nr() is used only by sadc.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
count.c

diff --git a/count.c b/count.c
index 1a520a4f6639e397369da63b7c30c6a23d58d44b..0c49be0eb0cff36e62f83de78f71663f1c7eb189 100644 (file)
--- 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