Subject: [libssh2] [PATCH] blocking_read_and_warnings.patch

[libssh2] [PATCH] blocking_read_and_warnings.patch

From: Daniel Stenberg <>
Date: Sat, 11 Nov 2006 11:17:27 +0100 (CET)


This patch does three things, and should serve as a basis for further

1 - #include <inttypes.h> and uses uint32_t (this is not very portable and
     need attention as I mentioned in my separate mail)

2 - changes libssh2_blocking_read() to return ssize_t and all code that uses
     this function explicitly checks its return code (better).

3 - I fixed a bunch of compiler warnings where functions got called with
     unsigned char * when they expect char *. I strongly suggest we patch away
     all warnings - now.

(And I really really want the code re-indented.)

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo

libssh2-devel mailing list

Received on 2006-11-11