From ec2ee80151f522f52485391d1497e7a6e080c627 Mon Sep 17 00:00:00 2001 From: Michael Schroeder Date: Mon, 17 Dec 2012 18:24:40 +0100 Subject: [PATCH] cosmetics: fix comments --- src/pool.c | 13 ++++++------- src/selection.c | 2 +- src/selection.h | 2 +- 3 files changed, 8 insertions(+), 9 deletions(-) diff --git a/src/pool.c b/src/pool.c index 023eaa6c..c44c96b8 100644 --- a/src/pool.c +++ b/src/pool.c @@ -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; diff --git a/src/selection.c b/src/selection.c index 06717a6b..2ef5e1e2 100644 --- a/src/selection.c +++ b/src/selection.c @@ -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 diff --git a/src/selection.h b/src/selection.h index 4aa2db49..f3716678 100644 --- a/src/selection.h +++ b/src/selection.h @@ -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 -- 2.47.2