Removed warnings while compiling

Fixed a bug in util.c that caused the compiler to print warnings.