+2017-09-26 Bruno Haible <bruno@clisp.org>
+
+ uniname/uniname-tests: Tighten code.
+ * tests/uniname/test-uninames.c (fill_names, fill_aliases): Merge two
+ local variables into one.
+
2017-09-26 Bruno Haible <bruno@clisp.org>
vma-iter: Improvements for Linux and BSD platforms.
{
char *p;
char *comment;
- unsigned int i;
- unsigned long ul;
+ unsigned long i;
lineno++;
exit (EXIT_FAILURE);
}
*p = '\0';
- ul = strtoul (field0, NULL, 16);
- if (ul >= 0x110000)
+ i = strtoul (field0, NULL, 16);
+ if (i >= 0x110000)
{
fprintf (stderr, "index too large\n");
exit (EXIT_FAILURE);
}
- i = ul;
unicode_names[i] = xstrdup (field1);
}
if (ferror (stream) || fclose (stream))
{
char *p;
char *comment;
- unsigned int uc;
- unsigned long ul;
+ unsigned long uc;
comment = strchr (line, '#');
if (comment != NULL)
}
*p = '\0';
- ul = strtoul (field0, NULL, 16);
- if (ul >= 0x110000)
+ uc = strtoul (field0, NULL, 16);
+ if (uc >= 0x110000)
{
fprintf (stderr, "index too large\n");
exit (EXIT_FAILURE);
}
- uc = ul;
if (aliases_count == ALIASLEN)
{