summaryrefslogtreecommitdiff
path: root/src/repodata.c
diff options
context:
space:
mode:
authorMichael Schroeder <mls@suse.de>2014-03-26 10:55:06 +0100
committerMichael Schroeder <mls@suse.de>2014-03-26 10:55:06 +0100
commitd2b43b9dee4c463d03abf7711720988e27c6fadb (patch)
treef8b83ea1547200a193cc267c087fde553fa08e4d /src/repodata.c
parentb7dbb3c2dd915471cf41da9e29a551df4823eecc (diff)
downloadlibsolv-d2b43b9dee4c463d03abf7711720988e27c6fadb.tar.gz
libsolv-d2b43b9dee4c463d03abf7711720988e27c6fadb.tar.bz2
libsolv-d2b43b9dee4c463d03abf7711720988e27c6fadb.zip
rename schemaoffset to less confusing schemaidx
Diffstat (limited to 'src/repodata.c')
-rw-r--r--src/repodata.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/repodata.c b/src/repodata.c
index 547b24b..fbe8654 100644
--- a/src/repodata.c
+++ b/src/repodata.c
@@ -3064,7 +3064,7 @@ repodata_internalize(Repodata *data)
Repokey *key, solvkey;
Id entry, nentry;
Id schemaid, keyid, *schema, *sp, oldschema, *keyp, *seen;
- int schemaoffset;
+ int schemaidx;
unsigned char *dp, *ndp;
int newschema, oldcount;
struct extdata newincore;
@@ -3188,10 +3188,10 @@ fprintf(stderr, "schemadata %p\n", data->schemadata);
}
/* we don't use a pointer to the schemadata here as repodata_serialize_key
* may call repodata_schema2id() which might realloc our schemadata */
- for (schemaoffset = data->schemata[schemaid]; (keyid = data->schemadata[schemaoffset]) != 0; schemaoffset++)
+ for (schemaidx = data->schemata[schemaid]; (keyid = data->schemadata[schemaidx]) != 0; schemaidx++)
{
if (entry == -1)
- data->mainschemaoffsets[schemaoffset - data->schemata[schemaid]] = newincore.len;
+ data->mainschemaoffsets[schemaidx - data->schemata[schemaid]] = newincore.len;
if (keyid == solvkeyid)
{
/* add flexarray entry count */