Commit Briefs
kamiftp: improve readline completions
Now `ls pref<TAB>' will complete all the paths starting with `pref' in the current directory; before it was only working for sub-directories.
kamiftp: refactor ftp_remote_files
no functional changes
fix #ifdef typo; add __dead to err functions
in d444fd2 I forgot to rename HAVE_ERR to HAVE_ERRC too.
add compat for errc and warnc
while here also fix the prototypes for warn and warnx
kamiftp: ensure compl_add_entry leaves a NULL terminator
while here also rearrange a bit the compl_state_reset/compl_add_entry dance and do the allocations only in the latter.