aboutsummaryrefslogtreecommitdiffstats
path: root/parser.c
diff options
context:
space:
mode:
authorreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2002-12-05 19:23:01 +0000
committerreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2002-12-05 19:23:01 +0000
commit3661f7737fb07a302d31afc670ef05edbfcedd8b (patch)
treea53a801ca1a2f17bf0b0b89d3705e085bc5dda5b /parser.c
parenteb8b04d760907d5f17f9a3dfa01431c6c2da84ef (diff)
downloadlcd4linux-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
Diffstat (limited to 'parser.c')
-rw-r--r--parser.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/parser.c b/parser.c
index 64544e7..cc12e6f 100644
--- 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;