summaryrefslogtreecommitdiffstats
path: root/lib/libalpm/sync.h
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2011-08-30 15:24:28 +0200
committerDan McGee <dan@archlinux.org>2011-09-01 18:33:28 +0200
commit11ab9aa9f5f0f3873df89c73e8715b82f485bd9b (patch)
tree905d304d3d75e72ab91a7fd3c4bc71fe4e346401 /lib/libalpm/sync.h
parentcf1f0143935fe62ebb568202ff83ba2de0815995 (diff)
downloadpacman-11ab9aa9f5f0f3873df89c73e8715b82f485bd9b.tar.gz
pacman-11ab9aa9f5f0f3873df89c73e8715b82f485bd9b.tar.xz
pacman/callback: reuse strlen calculation
Call strlen earlier in the dl progress callback, and reuse this length to replace some heavier str*() calls with more optimized mem*() replacements. This also gets rid of a false assumption that the ending string will ever be longer than the original string. Signed-off-by: Dave Reisner <dreisner@archlinux.org> Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/sync.h')
0 files changed, 0 insertions, 0 deletions