2014-12-29 Siddhesh Poyarekar <siddhesh@redhat.com>
+ * posix/getconf.c (main): Use size_t for type of I.
+ * scripts-gen-posix-conf-vars.awk (END): Use size_t for type of
+ NSPEC.
+
* posix/posix-conf-vars.list (SPEC:XBS5): Add sysconf prefix.
* posix/confstr.c: Define NEED_SPEC_ARRAY to 0.
* posix/posix-envs.def: Likewise.
/* Check for the specifications we know. */
if (spec != NULL)
{
- int i;
+ size_t i;
for (i = 0; i < nspecs; ++i)
if (strcmp (spec, specs[i].name) == 0)
break;
printf " { \"%s\", %s },\n", s, spec[s]
}
print " };"
- print "static const int nspecs = sizeof (specs) / sizeof (specs[0]);"
+ print "static const size_t nspecs = sizeof (specs) / sizeof (specs[0]);"
print "#endif"
}