]> git.ipfire.org Git - thirdparty/libsolv.git/commitdiff
make numeric attribute type consistent with repodata.h, its an
authorKlaus Kaempf <kkaempf@suse.de>
Tue, 8 Apr 2008 10:52:10 +0000 (10:52 +0000)
committerKlaus Kaempf <kkaempf@suse.de>
Tue, 8 Apr 2008 10:52:10 +0000 (10:52 +0000)
unsigned int.

src/repo.c
src/repo.h

index fc7229bf3af2c1a37f093d0216585e21436aec97..deeabefab89a1e5ba4dde41011e9f45cb07a93d6 100644 (file)
@@ -787,7 +787,8 @@ repo_lookup_str(Solvable *s, Id key)
   return 0;
 }
 
-int
+
+unsigned int
 repo_lookup_num(Solvable *s, Id key)
 {
   Repo *repo = s->repo;
index 60d1891338f6bba570c0be729e4b78374585602b..964652b2614fb6bd013f1d9424bb20739772eaa0 100644 (file)
@@ -169,7 +169,7 @@ void repo_search(Repo *repo, Id p, Id key, const char *match, int flags, int (*c
 /* returns the string value of the attribute, or NULL if not found */
 const char * repo_lookup_str(Solvable *s, Id key);
 /* returns the integer value of the attribute, or 0 if not found */
-int repo_lookup_num(Solvable *s, Id key);
+unsigned int repo_lookup_num(Solvable *s, Id key);
 /* generic attribute lookup */
 int repo_lookup(Solvable *s, Id key, int (*callback)(void *cbdata, Solvable *s, Repodata *data, Repokey *key, KeyValue *kv), void *cbdata);