diff options
author | Michael Schroeder <mls@suse.de> | 2014-03-26 10:55:06 +0100 |
---|---|---|
committer | Michael Schroeder <mls@suse.de> | 2014-03-26 10:55:06 +0100 |
commit | d2b43b9dee4c463d03abf7711720988e27c6fadb (patch) | |
tree | f8b83ea1547200a193cc267c087fde553fa08e4d /src | |
parent | b7dbb3c2dd915471cf41da9e29a551df4823eecc (diff) | |
download | libsolv-d2b43b9dee4c463d03abf7711720988e27c6fadb.tar.gz libsolv-d2b43b9dee4c463d03abf7711720988e27c6fadb.tar.bz2 libsolv-d2b43b9dee4c463d03abf7711720988e27c6fadb.zip |
rename schemaoffset to less confusing schemaidx
Diffstat (limited to 'src')
-rw-r--r-- | src/repodata.c | 6 |
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 */ |