OpenSSH warnings on FreeBSD

Eitan Adler lists at
Wed Dec 5 06:00:08 EST 2012

On 4 December 2012 13:51, Arthur Mesh <amesh at> wrote:
> On Tue, Dec 04, 2012 at 04:05:51PM +0400, Loganaden Velvindron wrote:
>> on FreeBSD, gcc complains that %d is used for sig_atomic_t
>> Casting to (int) as a solution ?
> I think casting to intmax_t is a safer approach, together with changing
> the format to %jd (although I am not sure how portable this is).

I think this is the more portable approach among the two.

Eitan Adler

More information about the openssh-unix-dev mailing list