summaryrefslogtreecommitdiff
path: root/src/poolid.c
diff options
context:
space:
mode:
authorMichael Schroeder <mls@suse.de>2012-01-11 14:12:06 +0100
committerMichael Schroeder <mls@suse.de>2012-01-11 14:12:06 +0100
commit34fd443de1375fcbc9cd05669f34ba545d329217 (patch)
tree95b031292fb4b1a0a72318b3edbabc69b0ec08a0 /src/poolid.c
parent893369ba813883756509df77d083ab005a8bea89 (diff)
downloadlibsolv-34fd443de1375fcbc9cd05669f34ba545d329217.tar.gz
libsolv-34fd443de1375fcbc9cd05669f34ba545d329217.tar.bz2
libsolv-34fd443de1375fcbc9cd05669f34ba545d329217.zip
- set pool_id2color, fix comments
Diffstat (limited to 'src/poolid.c')
-rw-r--r--src/poolid.c18
1 files changed, 8 insertions, 10 deletions
diff --git a/src/poolid.c b/src/poolid.c
index bf8d18b..accccc7 100644
--- a/src/poolid.c
+++ b/src/poolid.c
@@ -72,7 +72,7 @@ pool_rel2id(Pool *pool, Id name, Id evr, int flags, int create)
solv_free(pool->relhashtbl);
pool->relhashmask = hashmask = mkmask(pool->nrels + REL_BLOCK);
pool->relhashtbl = hashtbl = solv_calloc(hashmask + 1, sizeof(Id));
- // rehash all rels into new hashtable
+ /* rehash all rels into new hashtable */
for (i = 1; i < pool->nrels; i++)
{
h = relhash(ran[i].name, ran[i].evr, ran[i].flags) & hashmask;
@@ -117,9 +117,9 @@ pool_rel2id(Pool *pool, Id name, Id evr, int flags, int create)
}
-// Id -> String
-// for rels (returns name only) and strings
-//
+/* Id -> String
+ * for rels (returns name only) and strings
+ */
const char *
pool_id2str(const Pool *pool, Id id)
{
@@ -153,7 +153,7 @@ static const char *rels[] = {
};
-// get operator for RelId
+/* get operator for RelId */
const char *
pool_id2rel(const Pool *pool, Id id)
{
@@ -185,8 +185,7 @@ pool_id2rel(const Pool *pool, Id id)
}
-// get e:v.r for Id
-//
+/* get e:v.r for Id */
const char *
pool_id2evr(const Pool *pool, Id id)
{
@@ -278,8 +277,7 @@ pool_shrink_rels(Pool *pool)
pool->rels = solv_extend_resize(pool->rels, pool->nrels, sizeof(Reldep), REL_BLOCK);
}
-// reset all hash tables
-//
+/* free all hash tables */
void
pool_freeidhashes(Pool *pool)
{
@@ -288,4 +286,4 @@ pool_freeidhashes(Pool *pool)
pool->relhashmask = 0;
}
-// EOF
+/* EOF */