Replace != with < in for loops in errmod.
Replace 0's with NULL in plcmd.c
Change pointer 0's to NULLs.