aboutsummaryrefslogtreecommitdiffstats
path: root/plugin_uptime.c
diff options
context:
space:
mode:
authorreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2004-06-20 10:09:56 +0000
committerreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2004-06-20 10:09:56 +0000
commit7ac3e2a7d2c23ea71adeb56d8afbe1b1cbeee4df (patch)
treec9fe5fa4426d7334d8486a3a7e59c64a43d2ef9e /plugin_uptime.c
parente4626159694ea6774386faa2f0d2fb517de1eb8b (diff)
downloadlcd4linux-7ac3e2a7d2c23ea71adeb56d8afbe1b1cbeee4df.tar.gz
[lcd4linux @ 2004-06-20 10:09:52 by reinelt]
'const'ified the whole source git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@476 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
Diffstat (limited to 'plugin_uptime.c')
-rw-r--r--plugin_uptime.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/plugin_uptime.c b/plugin_uptime.c
index 1519ad1..7b701c3 100644
--- a/plugin_uptime.c
+++ b/plugin_uptime.c
@@ -1,4 +1,4 @@
-/* $Id: plugin_uptime.c,v 1.1 2004/05/22 18:30:02 reinelt Exp $
+/* $Id: plugin_uptime.c,v 1.2 2004/06/20 10:09:56 reinelt Exp $
*
* plugin for uptime
*
@@ -23,6 +23,10 @@
*
*
* $Log: plugin_uptime.c,v $
+ * Revision 1.2 2004/06/20 10:09:56 reinelt
+ *
+ * 'const'ified the whole source
+ *
* Revision 1.1 2004/05/22 18:30:02 reinelt
*
* added plugin 'uptime'
@@ -56,7 +60,7 @@
static int fd = -2;
-static char *itoa(char* buffer, size_t size, unsigned int value)
+static char *itoa(char* buffer, const size_t size, unsigned int value)
{
char *p;
@@ -78,7 +82,7 @@ static char *itoa(char* buffer, size_t size, unsigned int value)
}
-char *struptime (unsigned int uptime, char *format)
+char *struptime (const unsigned int uptime, const char *format)
{
static char string[256];
const char *src;
@@ -186,7 +190,7 @@ double getuptime (void)
}
-static void my_uptime (RESULT *result, int argc, RESULT *argv[])
+static void my_uptime (RESULT *result, const int argc, RESULT *argv[])
{
int age;
static double uptime = 0.0;