From: Michael Schroeder Date: Mon, 17 Dec 2012 17:24:40 +0000 (+0100) Subject: cosmetics: fix comments X-Git-Tag: BASE-SuSE-Code-12_3-Branch~113 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ec2ee80151f522f52485391d1497e7a6e080c627;p=thirdparty%2Flibsolv.git cosmetics: fix comments --- 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