MFC r350098, r350100-r350101
Use ANSI C function definitions and declerations.
Use headers instead of manual declerations of standard functions and
Remove a duplicate global (rfc931_timeout).
It is declared here and in rfc931.c and unused here so keep that copy
and discard this one.
Obtained from: CheriBSD
Sponsored by: DARPA, AFRL