diff options
author | reinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f> | 2000-03-28 07:22:15 +0000 |
---|---|---|
committer | reinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f> | 2000-03-28 07:22:15 +0000 |
commit | 6b61b6955e1de86af7111d6779646ab177b317ff (patch) | |
tree | 5ec56b09a89056f031446eb57f33f725359e74df /system.c | |
parent | 42914eda641c23996f9328c67fddb13df6225fb2 (diff) | |
download | lcd4linux-6b61b6955e1de86af7111d6779646ab177b317ff.tar.gz |
[lcd4linux @ 2000-03-28 07:22:15 by reinelt]
version 0.95 released
X11 driver up and running
minor bugs fixed
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@25 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
Diffstat (limited to 'system.c')
-rw-r--r-- | system.c | 18 |
1 files changed, 10 insertions, 8 deletions
@@ -1,4 +1,4 @@ -/* $Id: system.c,v 1.8 2000/03/23 07:24:48 reinelt Exp $ +/* $Id: system.c,v 1.9 2000/03/28 07:22:15 reinelt Exp $ * * system status retreivement * @@ -20,6 +20,12 @@ * * * $Log: system.c,v $ + * Revision 1.9 2000/03/28 07:22:15 reinelt + * + * version 0.95 released + * X11 driver up and running + * minor bugs fixed + * * Revision 1.8 2000/03/23 07:24:48 reinelt * * PPM driver up and running (but slow!) @@ -102,21 +108,17 @@ #include <ctype.h> #include <string.h> #include <unistd.h> +#include <errno.h> #include <sys/time.h> #include <sys/stat.h> #include <sys/types.h> #include <sys/utsname.h> -#include <asm/param.h> +#include <sys/param.h> #include "system.h" #include "cfg.h" #include "filter.h" -#ifdef USE_SYSINFO -#include <linux/kernel.h> -#include <linux/sys.h> -#endif - static int parse_meminfo (char *tag, char *buffer) { char *p; @@ -479,7 +481,7 @@ int Sensor (int index, double *val, double *min, double *max) { char buffer[32]; double value; - static int fd[SENSORS]={[0 ... SENSORS]=-2,}; + static int fd[SENSORS]={[0 ... SENSORS-1]=-2,}; static char *sensor[SENSORS]={NULL,}; static double val_buf[SENSORS]={0.0,}; static double min_buf[SENSORS]={0.0,}; |