Fix some warnings.

This commit is contained in:
Roy Marples 2008-02-19 16:05:42 +00:00
parent 79d40707db
commit 916a4463ce

View File

@ -995,14 +995,17 @@ next:
i = 0; i = 0;
for (depinfo = deptree; depinfo; depinfo = depinfo->next) for (depinfo = deptree; depinfo; depinfo = depinfo->next)
{ {
fprintf (fp, "depinfo_%d_service='%s'\n", i, depinfo->service); fprintf (fp, "depinfo_%lu_service='%s'\n",
(unsigned long) i, depinfo->service);
for (deptype = depinfo->depends; deptype; deptype = deptype->next) for (deptype = depinfo->depends; deptype; deptype = deptype->next)
{ {
k = 0; k = 0;
STRLIST_FOREACH (deptype->services, service, j) STRLIST_FOREACH (deptype->services, service, j)
{ {
fprintf (fp, "depinfo_%d_%s_%d='%s'\n", i, deptype->type, fprintf (fp, "depinfo_%lu_%s_%lu='%s'\n",
k, service); (unsigned long) i,
deptype->type,
(unsigned long) k, service);
k++; k++;
} }
} }