compiler warning -Wsign-compare fixed.
checkconfig....