Declare functions as static to silence clang warnings

This commit is contained in:
Avinash Sonawane
2021-12-20 13:04:40 +05:30
committed by Robert Roth
parent 1cb23c7b83
commit f5ced2028d

View File

@@ -47,7 +47,7 @@ _glibtop_init_disk_s (glibtop *server)
// Handle LVM and RAID // // Handle LVM and RAID //
void static void
find_primary_part (partition_info *primary_part, const char *m) find_primary_part (partition_info *primary_part, const char *m)
{ {
int n = 0, tlvl = 0; 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) is_virtual_drive (partition_info *primary_part, const char *p)
{ {
int i; int i;
@@ -207,7 +207,7 @@ is_virtual_drive (partition_info *primary_part, const char *p)
return test; return test;
} }
int static int
max_lines (const char *p) max_lines (const char *p)
{ {
char temp[10]; char temp[10];