+2008-07-02 Guillem Jover <guillem@debian.org>
+
+ * lib/fields.c (convert_string): Remove unneeded variable assignments.
+ Get rid this way of an int variable.
+
2008-07-02 Guillem Jover <guillem@debian.org>
* lib/fields.c (convert_string): Change nvip to be const and use a
const char **endpp)
{
const char *ep;
- int c;
const struct namevalue *nvip = ivip;
- ep= startp;
- if (!*ep)
+ if (!*startp)
parse_error(filename, lno, pigp, _("%s is missing"), what);
while (nvip->name) {
if (strncasecmp(nvip->name, startp, nvip->length))
parse_error(filename, lno, pigp, _("`%.*s' is not allowed for %s"),
strnlen(startp, 50), startp, what);
}
+
ep = startp + nvip->length;
- c = *ep;
- while (isspace(c)) c= *++ep;
- if (c && !endpp)
+ while (isspace(*ep))
+ ep++;
+ if (*ep && !endpp)
parse_error(filename, lno, pigp, _("junk after %s"), what);
if (endpp) *endpp= ep;
return nvip->value;