head 1.2; access; symbols pkgsrc-2013Q2:1.2.0.28 pkgsrc-2013Q2-base:1.2 pkgsrc-2012Q4:1.2.0.26 pkgsrc-2012Q4-base:1.2 pkgsrc-2011Q4:1.2.0.24 pkgsrc-2011Q4-base:1.2 pkgsrc-2011Q2:1.2.0.22 pkgsrc-2011Q2-base:1.2 pkgsrc-2009Q4:1.2.0.20 pkgsrc-2009Q4-base:1.2 pkgsrc-2008Q4:1.2.0.18 pkgsrc-2008Q4-base:1.2 pkgsrc-2008Q3:1.2.0.16 pkgsrc-2008Q3-base:1.2 cube-native-xorg:1.2.0.14 cube-native-xorg-base:1.2 pkgsrc-2008Q2:1.2.0.12 pkgsrc-2008Q2-base:1.2 pkgsrc-2008Q1:1.2.0.10 pkgsrc-2008Q1-base:1.2 pkgsrc-2007Q4:1.2.0.8 pkgsrc-2007Q4-base:1.2 pkgsrc-2007Q3:1.2.0.6 pkgsrc-2007Q3-base:1.2 pkgsrc-2007Q2:1.2.0.4 pkgsrc-2007Q2-base:1.2 pkgsrc-2007Q1:1.2.0.2 pkgsrc-2007Q1-base:1.2; locks; strict; comment @# @; 1.2 date 2007.04.01.21.26.50; author wiz; state dead; branches; next 1.1; 1.1 date 2007.02.22.17.38.34; author drochner; state Exp; branches; next ; desc @@ 1.2 log @Upgrade lsh to version 2 (from lsh2) and remove lsh2. No disagreement on pkgsrc-users. @ text @$NetBSD: patch-ag,v 1.1 2007/02/22 17:38:34 drochner Exp $ --- src/sftp/sftp_c.c.orig 2007-02-09 13:58:41.000000000 +0100 +++ src/sftp/sftp_c.c @@@@ -1097,8 +1097,11 @@@@ sftp_get_file_main(struct sftp_callback int write_needed = 0; UINT32 i; - /* FIXME: state is const */ - state->mem.used = 0; + /* FIXME: This is ugly. The me object needs to be moved a pointer + * away, or redesigned so that we don't need to modify it here. (Or + * the constification of sftp_callback could be undone + * altogether). */ + ((struct sftp_callback *)state)->mem.used = 0; sftp_get_mem_main(next, msg, id, in, out, state ); @ 1.1 log @pull in some patches from lsh2 to make it compile with gcc4 @ text @d1 1 a1 1 $NetBSD$ @