lib/dload: code simplification
commit33c08ac91e32e1c1fe135c42030f1a2b64a63a54
authorDave Reisner <d@falconindy.com>
Fri, 25 Mar 2011 12:45:54 +0000 (25 08:45 -0400)
committerDan McGee <dan@archlinux.org>
Mon, 28 Mar 2011 01:14:10 +0000 (27 20:14 -0500)
tree1b7c480c624ecb6bf9c2d95c43330e7427a77dcd
parentfd64988c8085a410a80851e2b4b6b62ea59139c2
lib/dload: code simplification

Based on the fact that localf always points to the same file, there's no
need to code in multiple fopen calls with varying results. Instead,
track the desired file open mode and make a single call to fopen.

Signed-off-by: Dave Reisner <d@falconindy.com>
Signed-off-by: Dan McGee <dan@archlinux.org>
lib/libalpm/dload.c