X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Fftpsbr.c;h=5b079ba2bf5833b59297d3e3ea58deff84d080a0;hp=d36e0e5088a471f2a94d0159513393182fbbeab3;hb=1ae9fa8a84998e44e0234543162e257815d7e972;hpb=1691e80890e5d8ba258c51c214a3e91880e1db2b diff --git a/uip/ftpsbr.c b/uip/ftpsbr.c index d36e0e5..5b079ba 100644 --- a/uip/ftpsbr.c +++ b/uip/ftpsbr.c @@ -3,6 +3,10 @@ * ftpsbr.c -- simple FTP client library * * $Id$ + * + * This code is Copyright (c) 2002, by the authors of nmh. See the + * COPYRIGHT file in the root directory of the nmh distribution for + * complete copyright information. */ #include @@ -27,16 +31,15 @@ extern int v_verbose; #include #include #include +#include -#if defined(BIND) && !defined(h_addr) +#if !defined(h_addr) # define h_addr h_addr_list[0] #endif #define inaddr_copy(hp,sin) \ memcpy((char *) &((sin)->sin_addr), (hp)->h_addr, (hp)->h_length) -extern int errno; - #define start_tcp_client(sock,priv) \ socket (AF_INET, SOCK_STREAM, 0) @@ -472,7 +475,7 @@ getreply (int complete, int expecteof) bp = buffer; for (;;) { - char c; + unsigned char c; if (read_tcp_socket (ftp_fd, &c, 1) < 1) { if (expecteof)