add 'scan' make target for clang
add tags make target for ctags
don't read from uninitialized var.

not really a bug because we don't really care what the value is, but it shuts up clang
remove unnecessary comparison of unsigned with < 0
remove unneeded assign