diff options
author | drochner <drochner> | 2007-02-22 17:38:33 +0000 |
---|---|---|
committer | drochner <drochner> | 2007-02-22 17:38:33 +0000 |
commit | 04e0ad62b86d4cbb300895e271e328801b6fc587 (patch) | |
tree | 02562915337893b28fed379f3785ac3fb3d4d42b /security/lsh/patches/patch-ag | |
parent | c9a9abf6d3b33026d75503642da8fd554e17b8b4 (diff) | |
download | pkgsrc-04e0ad62b86d4cbb300895e271e328801b6fc587.tar.gz |
pull in some patches from lsh2 to make it compile with gcc4
Diffstat (limited to 'security/lsh/patches/patch-ag')
-rw-r--r-- | security/lsh/patches/patch-ag | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/security/lsh/patches/patch-ag b/security/lsh/patches/patch-ag new file mode 100644 index 00000000000..2a42304e507 --- /dev/null +++ b/security/lsh/patches/patch-ag @@ -0,0 +1,18 @@ +$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 ); + |