malloc returns a void * which means that when you use malloc, you will need to cast the return value to the type of pointer you want.

*treePtr = malloc(sizeof(TreeNode));
Change the above line to:
*treePtr = (treNode *)malloc(sizeof(TreeNode));