]> git.webhop.me Git - lcd4linux.git/commitdiff
[lcd4linux @ 2002-12-05 19:23:01 by reinelt]
authorreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>
Thu, 5 Dec 2002 19:23:01 +0000 (19:23 +0000)
committerreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>
Thu, 5 Dec 2002 19:23:01 +0000 (19:23 +0000)
fixed undefined operations found by gcc3

git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@173 3ae390bd-cb1e-0410-b409-cd5a39f66f1f

mail2.c
parser.c
processor.c

diff --git a/mail2.c b/mail2.c
index 02cdbd820e699d5b5c538d1e390f3ba77d6577ff..353506fd404c6b143a17e955bb74dde603e69029 100644 (file)
--- a/mail2.c
+++ b/mail2.c
@@ -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);
index 64544e71da36caa86cf35ac77641353c076e3a0c..cc12e6fe6071e2028138379158f13ddd54eaca24 100644 (file)
--- a/parser.c
+++ b/parser.c
@@ -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;
index b53eb568d4d5fa3dfccbf7dd9c8104e3e21d2998..4e4a0e5dbe03c09593864a35ef3a0ab2b527b724 100644 (file)
@@ -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;