Fixing some warnings that were found with gcc401 -W.
Authored by: debug 2007-06-19
Parent: [r4998]
Child: [r5000]