[connman] fix build warnings about incompatible types