summaryrefslogtreecommitdiff
path: root/lib/rpmrc.c
diff options
context:
space:
mode:
authorjbj <devnull@localhost>2001-09-24 21:53:14 +0000
committerjbj <devnull@localhost>2001-09-24 21:53:14 +0000
commit9d555b6216692deeb97eb821e42716a7cd529ae0 (patch)
tree047af9e929f71681dbdf00af8d7b3bbe23cbfcc1 /lib/rpmrc.c
parent76b20cd2f4ebd499766aec27f62089690ac1d073 (diff)
downloadlibrpm-tizen-9d555b6216692deeb97eb821e42716a7cd529ae0.tar.gz
librpm-tizen-9d555b6216692deeb97eb821e42716a7cd529ae0.tar.bz2
librpm-tizen-9d555b6216692deeb97eb821e42716a7cd529ae0.zip
Move to lclint-3.0.0.15, revisit and clean up annotations.
intl/: Add gettext orphans. popt/intl/: Add gettext orphans. beecrypt: Add beecrypt repository. rpmio/tdigest.c: Add beecrypt digest checks. CVS patchset: 5077 CVS date: 2001/09/24 21:53:14
Diffstat (limited to 'lib/rpmrc.c')
-rw-r--r--lib/rpmrc.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/rpmrc.c b/lib/rpmrc.c
index 8383ab263..2f7ccc042 100644
--- a/lib/rpmrc.c
+++ b/lib/rpmrc.c
@@ -307,10 +307,13 @@ static int addCanon(canonEntry * table, int * tableLen, char * line,
const char * tshort_name;
int tnum;
+#ifdef DYING
if (! *tableLen) {
*tableLen = 2;
*table = xmalloc(2 * sizeof(struct canonEntry_s));
- } else {
+ } else
+#endif
+ {
(*tableLen) += 2;
/*@-unqualifiedtrans@*/
*table = xrealloc(*table, sizeof(struct canonEntry_s) * (*tableLen));
@@ -360,10 +363,13 @@ static int addDefault(defaultEntry * table, int * tableLen, char * line,
{
defaultEntry t;
+#ifdef DYING
if (! *tableLen) {
*tableLen = 1;
*table = xmalloc(sizeof(struct defaultEntry_s));
- } else {
+ } else
+#endif
+ {
(*tableLen)++;
/*@-unqualifiedtrans@*/
*table = xrealloc(*table, sizeof(struct defaultEntry_s) * (*tableLen));