]> git.ipfire.org Git - thirdparty/libsolv.git/commitdiff
fix to compile
authorMichael Andres <ma@suse.de>
Tue, 13 Nov 2007 21:06:35 +0000 (21:06 +0000)
committerMichael Andres <ma@suse.de>
Tue, 13 Nov 2007 21:06:35 +0000 (21:06 +0000)
src/repo_solv.h
src/solver.c

index 75c1b51055f01715078f87edee139ec112138448..459e20c3334ac3da88585676d906a47d2fc53c46 100644 (file)
@@ -7,7 +7,7 @@
 
 /*
  * repo_solv.h
- * 
+ *
  */
 
 #ifndef REPO_SOLVE_H
@@ -17,6 +17,8 @@
 extern "C" {
 #endif
 
+#include <stdio.h>
+
 #include "pool.h"
 #include "repo.h"
 
index 4af0651d90ad3f7a4120795b659317d736d77e55..3c72e5104e306578f9f84c76d9ef47e7cce1cb6c 100644 (file)
@@ -898,7 +898,7 @@ addrpmrulesforsolvable(Solver *solv, Solvable *s, Map *m)
 
              if (pool->verbose > 2)
              {
-                 printf("addrule %s-%s.%s %s %d %d\n", id2str(pool, s->name), id2str(pool, s->evr), id2str(pool, s->arch), dep2str(pool, req), -n, dp - pool->whatprovidesdata);
+                 printf("addrule %s-%s.%s %s %d %ld\n", id2str(pool, s->name), id2str(pool, s->evr), id2str(pool, s->arch), dep2str(pool, req), -n, dp - pool->whatprovidesdata);
                  for (i = 0; dp[i]; i++)
                      printf("  %s-%s.%s\n", id2str(pool, pool->solvables[dp[i]].name), id2str(pool, pool->solvables[dp[i]].evr), id2str(pool, pool->solvables[dp[i]].arch));
              }