Dont waste time with argi for rpmfc file class indexes
authorPanu Matilainen <pmatilai@redhat.com>
Wed, 26 Sep 2012 09:32:32 +0000 (12:32 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Wed, 26 Sep 2012 09:32:32 +0000 (12:32 +0300)
commit50983815f090262dd782df07a8827b290bacfcdb
tree3a6c4e92ea89ba1d2fb4159a97075cd397640888
parent1c18cb27e6bc9085e51e127732dd9e8051224ba9
Dont waste time with argi for rpmfc file class indexes

- argiAdd() isn't as costly as argvAdd(), but it still involves unnecessary
  reallocation on every addition as the number of files is predetermined,
  and each file has an associated class index.
- Additionally fixes a mostly harmless glitch introduced in commit
  65e616cc9fdd00f523939088fab1070021b9f742: the pool id's are one larger
  than the indexes we store in headers, take this into account in the
  debug output.
build/rpmfc.c