Fix some warnings.

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