ftp: Import NetBSD's latest version.
authorPeter Avalos <pavalos@dragonflybsd.org>
Sun, 8 Jan 2012 20:36:27 +0000 (12:36 -0800)
committerPeter Avalos <pavalos@dragonflybsd.org>
Sun, 8 Jan 2012 20:36:27 +0000 (12:36 -0800)
commitc81ae005f0718115c830875ab441690c794583ae
tree2384a6ab86138d9a997e54faa9f5d4625fa58080
parent20e59a13da22ed730008e138d6c6e71e0c138cce
ftp:  Import NetBSD's latest version.

Move determination of socket buffer sizes from startup to the first
time a socket is used, as the previous logic assumed AF_INET sockets
were available (which they may not be in an IPv6-only system).

Use __dead

Fix warnings.

Obtained-from:  NetBSD
contrib/tnftp/cmds.c
contrib/tnftp/extern.h
contrib/tnftp/fetch.c
contrib/tnftp/ftp.c
contrib/tnftp/main.c
contrib/tnftp/util.c