You do this exactly as if you were calling other functions instead of recursion.
(Recursion is the big secret that there is nothing special about recursion.)
,
return first->data == second->data
&& checkSame(first->left, second->left)
&& checkSame(first->right, second->right);
, .