diff options
author | Roy Marples <roy@marples.name> | 2008-02-19 16:05:42 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2008-02-19 16:05:42 +0000 |
commit | 916a4463ce64d3dbf54a98d17947379e72d907e8 (patch) | |
tree | 9306c2b6ea036d61516f0aa1a8d3e03852c5895f /src/librc/librc-depend.c | |
parent | 79d40707dbadaf83b12078c8183824c6ba88a6eb (diff) |
Fix some warnings.
Diffstat (limited to 'src/librc/librc-depend.c')
-rw-r--r-- | src/librc/librc-depend.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/librc/librc-depend.c b/src/librc/librc-depend.c index 9b8dfd61..1d377309 100644 --- a/src/librc/librc-depend.c +++ b/src/librc/librc-depend.c @@ -995,14 +995,17 @@ next: i = 0; 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) { k = 0; STRLIST_FOREACH (deptype->services, service, j) { - fprintf (fp, "depinfo_%d_%s_%d='%s'\n", i, deptype->type, - k, service); + fprintf (fp, "depinfo_%lu_%s_%lu='%s'\n", + (unsigned long) i, + deptype->type, + (unsigned long) k, service); k++; } } |