/*****************************************************************************
- * RRDtool 1.0.33 Copyright Tobias Oetiker, 1999
+ * RRDtool 1.1.x Copyright Tobias Oetiker, 1999
* This code is stolen from rateup (mrtg-2.x) by Dave Rand
*****************************************************************************
* diff calculate the difference between two very long integers available as
*****************************************************************************
* $Id$
* $Log$
- * Revision 1.1 2001/02/25 22:25:05 oetiker
- * Initial revision
+ * 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.1.1.1 2001/02/25 22:25:05 oetiker
+ * checkin
*
* Revision 1.1 1998/10/08 18:21:45 oetiker
* Initial revision
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 */
- while (!isdigit((int)*b) || *b==0)
+ while (!(isdigit((int)*b) || *b==0))
b++;
fix=b;
while (isdigit((int)*fix))