Fix some warnings.

Fix some warnings.

* I removed a few unused variables, and renamed a few duplicated local variables.
* Fix a warning for `"*" interpreted as argument prefix`