]> git.ipfire.org Git - thirdparty/libsolv.git/commitdiff
cosmetics: fix comments
authorMichael Schroeder <mls@suse.de>
Mon, 17 Dec 2012 17:24:40 +0000 (18:24 +0100)
committerMichael Schroeder <mls@suse.de>
Mon, 17 Dec 2012 17:24:40 +0000 (18:24 +0100)
src/pool.c
src/selection.c
src/selection.h

index 023eaa6c88cf57117357cdb4443b3bfa692ea688..c44c96b8f0a1fbdc824fc1444cda44d124fe0981 100644 (file)
@@ -491,10 +491,9 @@ pool_freewhatprovides(Pool *pool)
 /*
  * pool_queuetowhatprovides  - add queue contents to whatprovidesdata
  * 
- * on-demand filling of provider information
- * move queue data into whatprovidesdata
- * q: queue of Ids
- * returns: Offset into whatprovides
+ * used for whatprovides, jobs, learnt rules, selections
+ * input: q: queue of Ids
+ * returns: Offset into whatprovidesdata
  *
  */
 Id
@@ -508,7 +507,7 @@ pool_queuetowhatprovides(Pool *pool, Queue *q)
   if (count == 1 && q->elements[0] == SYSTEMSOLVABLE)
     return 2;
 
-  /* extend whatprovidesdata if needed, +1 for ID_NULL-termination */
+  /* extend whatprovidesdata if needed, +1 for 0-termination */
   if (pool->whatprovidesdataleft < count + 1)
     {
       POOL_DEBUG(SOLV_DEBUG_STATS, "growing provides hash data...\n");
@@ -520,9 +519,9 @@ pool_queuetowhatprovides(Pool *pool, Queue *q)
   off = pool->whatprovidesdataoff;
   memcpy(pool->whatprovidesdata + pool->whatprovidesdataoff, q->elements, count * sizeof(Id));
 
-  /* adapt count and ID_NULL-terminate */
+  /* adapt count and 0-terminate */
   pool->whatprovidesdataoff += count;
-  pool->whatprovidesdata[pool->whatprovidesdataoff++] = ID_NULL;
+  pool->whatprovidesdata[pool->whatprovidesdataoff++] = 0;
   pool->whatprovidesdataleft -= count + 1;
 
   return (Id)off;
index 06717a6bc40ba5896e927164d0d73335e5f67706..2ef5e1e217b4847dd2b32f7b14b3c64d44fba6c8 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2007, Novell Inc.
+ * Copyright (c) 2012, Novell Inc.
  *
  * This program is licensed under the BSD license, read LICENSE.BSD
  * for further information
index 4aa2db496c44e66d1a9606692d3cb91f6c23b986..f37166787053b329d2461e65585e5a1c7994c7c5 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2007, Novell Inc.
+ * Copyright (c) 2012, Novell Inc.
  *
  * This program is licensed under the BSD license, read LICENSE.BSD
  * for further information