Use C99 for loop initializers.

That means that a C99 compiler is now mandatory.
This commit is contained in:
Juan RP
2013-09-15 10:06:49 +02:00
parent 9a9c816552
commit 4057e4961c
32 changed files with 105 additions and 138 deletions

View File

@@ -48,10 +48,9 @@ struct transaction {
static void
show_missing_deps(xbps_array_t a)
{
unsigned int i;
const char *str;
for (i = 0; i < xbps_array_count(a); i++) {
for (unsigned int i = 0; i < xbps_array_count(a); i++) {
xbps_array_get_cstring_nocopy(a, i, &str);
fprintf(stderr, "%s\n", str);
}
@@ -60,10 +59,9 @@ show_missing_deps(xbps_array_t a)
static void
show_conflicts(xbps_array_t a)
{
unsigned int i;
const char *str;
for (i = 0; i < xbps_array_count(a); i++) {
for (unsigned int i = 0; i < xbps_array_count(a); i++) {
xbps_array_get_cstring_nocopy(a, i, &str);
fprintf(stderr, "%s\n", str);
}