The patch is from the FreeBSD ports tree and is for GCC compatibility.

http://svnweb.freebsd.org/ports/head/devel/libedit/files/patch-vi.c?annotate=300896