summary refs log tree commit diff stats
path: root/plugins/sysinfo/match.c
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2014-07-19 13:36:13 +1000
committerTingPing <tingping@tingping.se>2014-11-02 14:41:20 -0500
commitf83d78dd2801c7e4bee406379d3119f8852cf297 (patch)
tree72322bd80d992ead5359ed70faeeac1ae6a73a20 /plugins/sysinfo/match.c
parent9fb4eb5107a133a4c0492f11f02cdeb014042786 (diff)
Warning cleanup
- ignoring const
- declarations after statements
- some C files didnt include own headers (risking them getting out of sync)

Closes #1064
Diffstat (limited to 'plugins/sysinfo/match.c')
-rw-r--r--plugins/sysinfo/match.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/sysinfo/match.c b/plugins/sysinfo/match.c
index adfbff1b..f8a8cf96 100644
--- a/plugins/sysinfo/match.c
+++ b/plugins/sysinfo/match.c
@@ -32,12 +32,12 @@ float percentage(unsigned long long *free, unsigned long long *total)
 
 char *pretty_freespace(const char *desc, unsigned long long *free_k, unsigned long long *total_k)
 {
-        char *result, **quantity;
+	char *quantities[] = { "KiB", "MiB", "GiB", "TiB", "PiB", "EiB", "ZiB", "YiB", 0 };
+	char *result, **quantity;
 	double free_space, total_space;
 	free_space = *free_k;
 	total_space = *total_k;
         result = malloc(bsize * sizeof(char));
-	char *quantities[] = { "KiB", "MiB", "GiB", "TiB", "PiB", "EiB", "ZiB", "YiB", 0 };
 	if (total_space == 0)
 	{
 		snprintf(result, bsize, "%s: none", desc);