projects
/
platform
/
upstream
/
libsolv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
0edf389
)
make numeric attribute type consistent with repodata.h, its an
author
Klaus Kaempf
<kkaempf@suse.de>
Tue, 8 Apr 2008 10:52:10 +0000
(10:52 +0000)
committer
Klaus Kaempf
<kkaempf@suse.de>
Tue, 8 Apr 2008 10:52:10 +0000
(10:52 +0000)
unsigned int.
src/repo.c
patch
|
blob
|
history
src/repo.h
patch
|
blob
|
history
diff --git
a/src/repo.c
b/src/repo.c
index
fc7229b
..
deeabef
100644
(file)
--- a/
src/repo.c
+++ b/
src/repo.c
@@
-787,7
+787,8
@@
repo_lookup_str(Solvable *s, Id key)
return 0;
}
return 0;
}
-int
+
+unsigned int
repo_lookup_num(Solvable *s, Id key)
{
Repo *repo = s->repo;
repo_lookup_num(Solvable *s, Id key)
{
Repo *repo = s->repo;
diff --git
a/src/repo.h
b/src/repo.h
index
60d1891
..
964652b
100644
(file)
--- a/
src/repo.h
+++ b/
src/repo.h
@@
-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 */
/* 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);
/* generic attribute lookup */
int repo_lookup(Solvable *s, Id key, int (*callback)(void *cbdata, Solvable *s, Repodata *data, Repokey *key, KeyValue *kv), void *cbdata);