Subject: Compiler warnings

Compiler warnings

From: Seth Willits <>
Date: Wed, 28 Nov 2012 14:42:07 -0800

strlen() returns size_t (unsigned long on OS X for instance) but it's being passed directly to unsigned int parameters in some places so warnings are generated about the implicit precision loss.

For example in the define for libssh2_channel_exec. Pretty much everywhere strlen() is used in the header I think. They just need to be explicitly typecasted to (unsigned int).

Seth Willits
Received on 2012-11-28