fix unused variable
fix warning ('rc' may be used uninitialized in this function)
fix warning ('port' may be used uninitialized in this function)
fix warning ('ret' may be used uninitialized in this function)
Minor style fixes: fix-warnings branch.
Merge branch 'fix-warnings-stable' into stable