* Please see COPYING for details
*
* Copyright (c) 2004, Hannu Saransaari and Lauri Hakkarainen
- * Copyright (c) 2005-2009 Brenden Matthews, Philip Kovacs, et. al.
+ * Copyright (c) 2005-2010 Brenden Matthews, Philip Kovacs, et. al.
* (see AUTHORS)
* All rights reserved.
*
}
line_s = *saveptr;
+again:
/* read the device */
*dev = ++p;
if (!(p = strchr(p, line_s[0])))
*(p++) = '\0';
*unit = *(p++);
*val = strtol(cval, &endptr, 10);
- if (*endptr)
- goto out_fail;
+ if (*endptr) {
+ if (!(p = strchr(p, line_s[0])))
+ goto out_fail;
+
+ p++;
+ goto again;
+ }
/* preset p for next call */
p++;