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 023eaa6..c44c96b 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 06717a6..2ef5e1e 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 4aa2db4..f371667 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