[libgtop] Declare functions as `static` to silence clang warnings
- From: Robert Roth <robertroth src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgtop] Declare functions as `static` to silence clang warnings
- Date: Mon, 28 Mar 2022 08:14:23 +0000 (UTC)
commit f5ced2028d1edb81c710c756859b9abb0d866e16
Author: Avinash Sonawane <rootkea gmail com>
Date: Mon Dec 20 13:04:40 2021 +0530
Declare functions as `static` to silence clang warnings
sysdeps/linux/disk.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/sysdeps/linux/disk.c b/sysdeps/linux/disk.c
index 86d19652..89acd686 100644
--- a/sysdeps/linux/disk.c
+++ b/sysdeps/linux/disk.c
@@ -47,7 +47,7 @@ _glibtop_init_disk_s (glibtop *server)
// Handle LVM and RAID //
-void
+static void
find_primary_part (partition_info *primary_part, const char *m)
{
int n = 0, tlvl = 0;
@@ -175,7 +175,7 @@ find_primary_part (partition_info *primary_part, const char *m)
}
}
-int
+static int
is_virtual_drive (partition_info *primary_part, const char *p)
{
int i;
@@ -207,7 +207,7 @@ is_virtual_drive (partition_info *primary_part, const char *p)
return test;
}
-int
+static int
max_lines (const char *p)
{
char temp[10];
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]