summaryrefslogtreecommitdiff
path: root/package/ctorrent
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2009-06-04 19:49:34 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2009-06-04 19:49:34 +0200
commit8a2754e0fbdea7497281327f2896be2a1253a107 (patch)
treebc7c400745fde54e6fb7a010fcb026258564d3bc /package/ctorrent
parent9bd4456c5a83c3474fdf9fe5cf14004a0874e2c8 (diff)
parent2d3aaf1664850031f5497e121dc82ab65f63641a (diff)
Merge branch 'master' of ssh://openadk.org/git/openadk
Diffstat (limited to 'package/ctorrent')
-rwxr-xr-xpackage/ctorrent/Makefile2
-rw-r--r--package/ctorrent/patches/patch-bencode_cpp16
-rw-r--r--package/ctorrent/patches/patch-bencode_h11
3 files changed, 27 insertions, 2 deletions
diff --git a/package/ctorrent/Makefile b/package/ctorrent/Makefile
index 5c6221b08..23ba6ac71 100755
--- a/package/ctorrent/Makefile
+++ b/package/ctorrent/Makefile
@@ -1,5 +1,3 @@
-# $Id$
-#-
# This file is part of the OpenADK project. OpenADK is copyrighted
# material, please see the LICENCE file in the top-level directory.
diff --git a/package/ctorrent/patches/patch-bencode_cpp b/package/ctorrent/patches/patch-bencode_cpp
new file mode 100644
index 000000000..9f2a4381e
--- /dev/null
+++ b/package/ctorrent/patches/patch-bencode_cpp
@@ -0,0 +1,16 @@
+$Id: update-patches 24 2008-08-31 14:56:13Z wbx $
+--- ctorrent-dnh2.orig/bencode.cpp 2006-01-02 03:38:01.000000000 +0100
++++ ctorrent-dnh2/bencode.cpp 2009-06-01 19:10:05.000000000 +0200
+@@ -213,10 +213,10 @@ size_t bencode_end_dict_list(FILE *fp)
+ return (EOF == fputc('e',fp)) ? 0 : 1;
+ }
+
+-size_t bencode_path2list(const char *pathname, FILE *fp)
++size_t bencode_path2list(char *pathname, FILE *fp)
+ {
+ char *pn;
+- const char *p = pathname;
++ char *p = pathname;
+
+ if( bencode_begin_list(fp) != 1 ) return 0;
+
diff --git a/package/ctorrent/patches/patch-bencode_h b/package/ctorrent/patches/patch-bencode_h
new file mode 100644
index 000000000..594fa668a
--- /dev/null
+++ b/package/ctorrent/patches/patch-bencode_h
@@ -0,0 +1,11 @@
+$Id: update-patches 24 2008-08-31 14:56:13Z wbx $
+--- ctorrent-dnh2.orig/bencode.h 2005-08-27 05:43:00.000000000 +0200
++++ ctorrent-dnh2/bencode.h 2009-06-01 19:11:29.000000000 +0200
+@@ -31,6 +31,6 @@ size_t bencode_int(const int integer, FI
+ size_t bencode_begin_dict(FILE *fp);
+ size_t bencode_begin_list(FILE *fp);
+ size_t bencode_end_dict_list(FILE *fp);
+-size_t bencode_path2list(const char *pathname, FILE *fp);
++size_t bencode_path2list(char *pathname, FILE *fp);
+
+ #endif