Fixed some warnings in c util.