Snyc tnftp with NetBSD:
authorPeter Avalos <pavalos@dragonflybsd.org>
Wed, 15 Dec 2010 05:40:35 +0000 (19:40 -1000)
committerPeter Avalos <pavalos@dragonflybsd.org>
Wed, 15 Dec 2010 05:40:35 +0000 (19:40 -1000)
commit20e59a13da22ed730008e138d6c6e71e0c138cce
tree27eca5df829d3ecdba415741b59b5adde148ab79
parentfa70ef36bdac8229a2e2cf35b3cfc3444d787343
Snyc tnftp with NetBSD:

Fix numerous WARNS issues.

Rename internal getline() function to get_line() to prevent conflicts.

Rename argument from "bool" to "val".

Parse HTTP 'Date' entries in the `C' locale rather than the user's.

Avoid NULL dereference in log output if the command line parser
failed to extract a port number from the URL.

Use AF_INET instead of AF_UNSPEC as the default family if
!defined(INET6).

In ftpvis(), prevent incomplete escape sequences at end of dst,
and ensure NUL-termination of dst.  Also tweak for readibility.
14 files changed:
contrib/tnftp/cmds.c
contrib/tnftp/cmdtab.c
contrib/tnftp/complete.c
contrib/tnftp/domacro.c
contrib/tnftp/extern.h
contrib/tnftp/fetch.c
contrib/tnftp/ftp.1
contrib/tnftp/ftp.c
contrib/tnftp/ftp_var.h
contrib/tnftp/main.c
contrib/tnftp/progressbar.c
contrib/tnftp/progressbar.h
contrib/tnftp/util.c
contrib/tnftp/version.h