Subject: Re: [libssh2] constness of API parameters

Re: [libssh2] constness of API parameters

From: Guenter Knauf <eflash_at_gmx.net>
Date: Wed, 18 Apr 2007 22:11:13 +0200

Hi Dan,
> On Wed, Apr 18, 2007 at 12:32:08AM +0200, Guenter Knauf wrote:
>> just commit, and I report back if any problems....

> I've just checked in the const API changes--I'll assume no news is good
> news!

--- kex.c.orig Wed Apr 18 21:58:10 2007
+++ kex.c Wed Apr 18 22:08:28 2007
@@ -1110,7 +1110,7 @@
  */
 static int libssh2_kex_agree_comp(LIBSSH2_SESSION *session, libssh2_endpoint_data *endpoint, unsigned char *comp, unsigned long comp_len)
 {
- LIBSSH2_COMP_METHOD **compp = libssh2_comp_methods();
+ const LIBSSH2_COMP_METHOD **compp = libssh2_comp_methods();
         unsigned char *s;
         (void)session;
 

that was all; with this patch compilation works again...

Guen.

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
libssh2-devel mailing list
libssh2-devel_at_lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libssh2-devel
Received on 2007-04-18