projects
/
rrdtool.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix Win32 Build compatibility.
[rrdtool.git]
/
src
/
rrd_diff.c
diff --git
a/src/rrd_diff.c
b/src/rrd_diff.c
index
0e04de6
..
3f80a15
100644
(file)
--- a/
src/rrd_diff.c
+++ b/
src/rrd_diff.c
@@
-7,6
+7,10
@@
*****************************************************************************
* $Id$
* $Log$
*****************************************************************************
* $Id$
* $Log$
+ * Revision 1.3 2002/04/01 18:31:22 oetiker
+ * "!" takes a higher preference than "||" this means rrd_update N:: would
+ * segfault -- Oliver Cook <ollie@uk.clara.net>
+ *
* Revision 1.2 2002/02/01 20:34:49 oetiker
* fixed version number and date/time
*
* Revision 1.2 2002/02/01 20:34:49 oetiker
* fixed version number and date/time
*
@@
-35,13
+39,13
@@
rrd_diff(char *a, char *b)
char res[LAST_DS_LEN+1], *a1, *b1, *r1, *fix;
int c,x,m;
char res[LAST_DS_LEN+1], *a1, *b1, *r1, *fix;
int c,x,m;
- while (!
isdigit((int)*a) || *a==0
)
+ while (!
(isdigit((int)*a) || *a==0)
)
a++;
fix=a;
while (isdigit((int)*fix))
fix++;
*fix = 0; /* maybe there is some non digit data in the string */
a++;
fix=a;
while (isdigit((int)*fix))
fix++;
*fix = 0; /* maybe there is some non digit data in the string */
- while (!
isdigit((int)*b) || *b==0
)
+ while (!
(isdigit((int)*b) || *b==0)
)
b++;
fix=b;
while (isdigit((int)*fix))
b++;
fix=b;
while (isdigit((int)*fix))