Simplify fpLookupSubdir() a bit
authorPanu Matilainen <pmatilai@redhat.com>
Fri, 28 Sep 2012 09:43:39 +0000 (12:43 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Fri, 28 Sep 2012 09:43:39 +0000 (12:43 +0300)
commit5f9af37583f910ed1adaea770687d4c99caa0a24
tree8f3c68702a4a610731886ad5e9b4a09f06e030b6
parentbdb966b4df1a882f9c1f84393666277bec98080c
Simplify fpLookupSubdir() a bit

- Use string offsets for basename start and end to track the progress,
  avoiding +1/-1 adjustments in every damn calculation.
- Reduce the places where new basename is calculated to just one
  at the start of the main loop, just adjust the basename start
  and end accordingly beforehand.
- This shouldn't change any functionality, just simplify the code
  a little bit.
lib/fprint.c