diff options
author | reinelt <> | 2004-06-26 09:27:21 +0000 |
---|---|---|
committer | reinelt <> | 2004-06-26 09:27:21 +0000 |
commit | dc5568350b289278d2e85f8d8eaea4e652b4876c (patch) | |
tree | b14a2a596dd615ae17880b7007d6b2b78191af94 /plugin_imon.c | |
parent | 3f9f909fa330cb2ff47b56c43d2a4c5e1dc0a8c0 (diff) | |
download | lcd4linux-dc5568350b289278d2e85f8d8eaea4e652b4876c.tar.gz |
[lcd4linux @ 2004-06-26 09:27:20 by reinelt]
added '-W' to CFLAGS
changed all C++ comments to C ones ('//' => '/* */')
cleaned up a lot of signed/unsigned mistakes
Diffstat (limited to 'plugin_imon.c')
-rwxr-xr-x | plugin_imon.c | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/plugin_imon.c b/plugin_imon.c index 30def5d..a7ed6d9 100755 --- a/plugin_imon.c +++ b/plugin_imon.c @@ -1,4 +1,4 @@ -/* $Id: plugin_imon.c,v 1.11 2004/06/24 20:18:08 nicowallmeier Exp $ +/* $Id: plugin_imon.c,v 1.12 2004/06/26 09:27:21 reinelt Exp $ * * imond/telmond data processing * @@ -22,6 +22,12 @@ * * * $Log: plugin_imon.c,v $ + * Revision 1.12 2004/06/26 09:27:21 reinelt + * + * added '-W' to CFLAGS + * changed all C++ comments to C ones ('//' => '/* */') + * cleaned up a lot of signed/unsigned mistakes + * * Revision 1.11 2004/06/24 20:18:08 nicowallmeier * minor bugfix * @@ -261,7 +267,7 @@ static int parse_telmon(){ static char oldanswer[128]; int age; - // reread every 1 sec only + /* reread every 1 sec only */ age=hash_age(&TELMON, NULL); if (age>0 && age<=1000) return 0; @@ -315,7 +321,7 @@ void init(){ if (fd<0){ err++; - } else if ((ipass!=NULL) && (*ipass!='\0')) { // Passwort senden + } else if ((ipass!=NULL) && (*ipass!='\0')) { /* Passwort senden */ char buf[40]; qprintf(buf,sizeof(buf),"pass %s",ipass); send_command(fd,buf); @@ -324,11 +330,11 @@ void init(){ } static int parse_imon(const char *cmd){ - // reread every half sec only + /* reread every half sec only */ int age=hash_age(&IMON, cmd); if (age>0 && age<=500) return 0; - init(); // establish connection + init(); /* establish connection */ if (err) return -1; @@ -339,7 +345,7 @@ static int parse_imon(const char *cmd){ static void my_imon_version (RESULT *result){ char *val; - // read only ones + /* read only ones */ int age=hash_age(&IMON, "version"); if (age<0){ char *s; @@ -349,7 +355,7 @@ static void my_imon_version (RESULT *result){ return; } s=get_value("version"); - for (;;){ // interne Versionsnummer killen + for (;;){ /* interne Versionsnummer killen */ if (s[0]==' '){ s=s+1; break; @@ -371,11 +377,11 @@ static int parse_imon_rates(const char *channel){ qprintf(buf,sizeof(buf),"rate %s in",channel); - // reread every half sec only + /* reread every half sec only */ age=hash_age(&IMON, buf); if (age>0 && age<=500) return 0; - init(); // establish connection + init(); /* establish connection */ if (err) return -1; |