tcp: minor correction to avoid GCC warnings about type aliasing