Remove unused variables.
testbed/testcms2.c: fix more type specifier mismatch and a variable shadowing.