diff options
author | reinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f> | 2002-12-05 19:23:01 +0000 |
---|---|---|
committer | reinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f> | 2002-12-05 19:23:01 +0000 |
commit | 3661f7737fb07a302d31afc670ef05edbfcedd8b (patch) | |
tree | a53a801ca1a2f17bf0b0b89d3705e085bc5dda5b | |
parent | eb8b04d760907d5f17f9a3dfa01431c6c2da84ef (diff) | |
download | lcd4linux-3661f7737fb07a302d31afc670ef05edbfcedd8b.tar.gz |
[lcd4linux @ 2002-12-05 19:23:01 by reinelt]
fixed undefined operations found by gcc3
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@173 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
-rw-r--r-- | mail2.c | 7 | ||||
-rw-r--r-- | parser.c | 9 | ||||
-rw-r--r-- | processor.c | 7 |
3 files changed, 16 insertions, 7 deletions
@@ -1,4 +1,4 @@ -/* $Id: mail2.c,v 1.6 2001/09/12 06:17:22 reinelt Exp $ +/* $Id: mail2.c,v 1.7 2002/12/05 19:23:01 reinelt Exp $ * * mail: pop3, imap, news functions * @@ -20,6 +20,9 @@ * * * $Log: mail2.c,v $ + * Revision 1.7 2002/12/05 19:23:01 reinelt + * fixed undefined operations found by gcc3 + * * Revision 1.6 2001/09/12 06:17:22 reinelt * *** empty log message *** * @@ -266,7 +269,7 @@ static int check_nntp(char *user, char *pass, char *machine, while (1) { lmin = strtol(p, &p, 10); if (*p == '-') - lmax = strtol(++p, &p, 10); + lmax = strtol(p+1, &p, 10); else lmax=lmin; debug("nntp: %s: lmin=%d lmax=%d", group, lmin, lmax); @@ -1,4 +1,4 @@ -/* $Id: parser.c,v 1.17 2002/08/19 04:41:20 reinelt Exp $ +/* $Id: parser.c,v 1.18 2002/12/05 19:23:01 reinelt Exp $ * * row definition parser * @@ -20,6 +20,9 @@ * * * $Log: parser.c,v $ + * Revision 1.18 2002/12/05 19:23:01 reinelt + * fixed undefined operations found by gcc3 + * * Revision 1.17 2002/08/19 04:41:20 reinelt * introduced bar.c, moved bar stuff from display.h to bar.h * @@ -257,7 +260,7 @@ char *parse_row (char *string, int supported_bars, int usage[]) break; } if (isupper(*s)) type |= BAR_LOG; - len=strtol(++s, &s, 10); + len=strtol(s+1, &s, 10); if (len<1 || len>127) { error ("WARNING: invalid bar length in <%s>", string); break; @@ -282,7 +285,7 @@ char *parse_row (char *string, int supported_bars, int usage[]) } } else if (*s == ',' && (type & BAR_T)) - token2=strtol(++s, &s, 10); /* get horizontal length */ + token2=strtol(s+1, &s, 10); /* get horizontal length */ *p++='$'; *p++=type; *p++=len; diff --git a/processor.c b/processor.c index b53eb56..4e4a0e5 100644 --- a/processor.c +++ b/processor.c @@ -1,4 +1,4 @@ -/* $Id: processor.c,v 1.27 2002/08/19 04:41:20 reinelt Exp $ +/* $Id: processor.c,v 1.28 2002/12/05 19:23:01 reinelt Exp $ * * main data processing * @@ -20,6 +20,9 @@ * * * $Log: processor.c,v $ + * Revision 1.28 2002/12/05 19:23:01 reinelt + * fixed undefined operations found by gcc3 + * * Revision 1.27 2002/08/19 04:41:20 reinelt * introduced bar.c, moved bar stuff from display.h to bar.h * @@ -342,7 +345,7 @@ static double query_bar (int token) case T_BATT_PERC: { static int alarm; - alarm=(++alarm % 3); + alarm=((alarm+1) % 3); if(value < atoi(cfg_get("battwarning")?:"10") && !alarm) /* flash bar */ value = 0; return value/100; |