fix up some compiler warnings in read_password