summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Koegel <eric.koegel@gmail.com>2016-01-11 18:52:30 +0300
committerEric Koegel <eric.koegel@gmail.com>2016-01-11 18:52:57 +0300
commit41034b4fbb80850838585fff110d386b8891f5e2 (patch)
treeb1c05a49d824bd9e12adf33f90704bf1bf2939d0
parent2c4fe6e4e519d1e6641ee33c32aa81e6011c3358 (diff)
downloadConsoleKit2-41034b4fbb80850838585fff110d386b8891f5e2.tar.gz
Minor cleanup
Signed-off-by: Eric Koegel <eric.koegel@gmail.com>
-rw-r--r--src/ck-sysdeps-linux.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/ck-sysdeps-linux.c b/src/ck-sysdeps-linux.c
index 36dee4a..d3d1b5a 100644
--- a/src/ck-sysdeps-linux.c
+++ b/src/ck-sysdeps-linux.c
@@ -779,8 +779,7 @@ ck_get_active_console_num (int console_fd,
}
/* adapted from upower-0.9 branch */
-gfloat linux_get_used_swap(void);
-gfloat
+static gfloat
linux_get_used_swap (void)
{
gchar *contents = NULL;
@@ -837,8 +836,7 @@ out:
}
/* adapted from upower-0.9 branch */
-gboolean linux_check_enough_swap (void);
-gboolean
+static gboolean
linux_check_enough_swap (void)
{
gfloat waterline = 98.0f; /* 98% */