connector: Fix incompatible pointer type warning