Cppcheck: Minor, reduce scope of variable declarations.

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
Cppcheck: Add scanf() field width for reading status codes in DDNS server reply.

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>