Updated buddy.c to remove a few errors. Incompatible types still remains.