Compiler warnings on HP Itanium

2009-04-06 Thread Mononen Jussi
Hi, I encountered the following warnings while compiling libssh2 v1.1 on ia64-hp-hpux11.23 "sftp.c", line 1993: warning #2068-D: integer conversion resulted in a change of sign retcode = -1; ^ "sftp.c", line 2000: warning #2068-D: integer conversion result

Re: Compiler warnings on HP Itanium

2009-04-06 Thread Daniel Stenberg
On Mon, 6 Apr 2009, Mononen Jussi wrote: > "sftp.c", line 1993: warning #2068-D: integer conversion resulted in a > change > of sign > retcode = -1; > 'retcode' is defined as 'unsigned long'. Is this intentional? No, it's a bug. I suggest this fix: --- src/sftp.c 29 Mar 2009

libssh2_session_set_blocking has no effect

2009-04-06 Thread Mudi Dandan
Hi Folks, I have been testing libssh2 (latest release) on MAC OS X 10.5.6 and seems that libssh2_session_set_blocking() has no effect and no matter what I set the calls run in non-blocking mode. Is this a know issue? kind regards, Mudi -

Re: libssh2_session_set_blocking has no effect

2009-04-06 Thread Daniel Stenberg
On Mon, 6 Apr 2009, Mudi Dandan wrote: > I have been testing libssh2 (latest release) on MAC OS X 10.5.6 and seems > that libssh2_session_set_blocking() has no effect and no matter what I set > the calls run in non-blocking mode. Is this a know issue? No it isn't known nor expected. I've run th

Re: RE : RE : About simple examples

2009-04-06 Thread Daniel Stenberg
On Wed, 1 Apr 2009, Jean-Louis CHARTON wrote: > I mean that for example just do a: > rc = libssh2_session_startup(...) > if (rc) { > exit some_error; > } > > is a pretty poor illustration of how to use libssh2 library in that case > because you can be pretty sure that most of the time rc will b