Re: Building lftp 3.5.10 with GCC 3.4.3 on AIX 4.3.3
Andre Noll <[email protected]> Thu, 10 May 2007 16:14:12 +0200
| Newsgroups | gmane.network.lftp.devel |
|---|---|
| Message-ID | <[email protected]> |
On 10:51, Albert Chin wrote:
> Http.cc:639: warning: int format, size_t arg (arg 3)
> Http.cc:662: warning: int format, size_t arg (arg 3)
>
> The problematic lines are:
> Send("Content-Length: %d\r\n",strlen(allprop));
> Send("Content-Length: %d\r\n",strlen(allprop));
>
> As strlen() returns a size_t, should we change this to %ld or cast
> strlen() with (int)?
Why not use %zd?
Andre
--
The only person who always got his work done by Friday was Robinson Crusoe
signature.asc
(application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQFGQyi0Wto1QDEAkw8RAl/9AJsG/Sczu12nYzpSp97xJnBOL8HrLgCgpGwx DcNPQX+EOZuQV4QN424O2D4= =Exv2 -----END PGP SIGNATURE-----