From: Mark Wooding Date: Mon, 22 Dec 2014 20:32:58 +0000 (+0000) Subject: rsa-recover.c: First stage cleanup: hoist variable declarations. X-Git-Tag: 2.2.0~19 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/catacomb/commitdiff_plain/f2d45696fc0060f54eac1b1937fa6bcdf7799af0?hp=f2d45696fc0060f54eac1b1937fa6bcdf7799af0 rsa-recover.c: First stage cleanup: hoist variable declarations. Remove all of the variable declarations from inner blocks and hoist them to toplevel. Initialize `mp' variables once, and use their initial values, rather than writing `MP_NEW' explicitly in the first assignment. There's no functional change here. Two small (temporary) warts. Firstly, the handling of `z' and `zz' in the factoring loop is rather nasty, repeatedly freeing and recreating `zz'; and secondly `p1' and `q1' are used in two separate places. To prevent conflicts here, reset the relevant variables to `MP_NEW' after freeing them. ---