summaryrefslogtreecommitdiff
path: root/net/afpfs-ng/files/patch-lib__midlevel.c
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2013-02-18 04:43:58 +0000
committerMartin Wilke <miwi@FreeBSD.org>2013-02-18 04:43:58 +0000
commitdf2e80c8b472e780b4cc9bfda947b396898cd81d (patch)
tree6c4c24197c5ec540d02ef640e97d288607c97e01 /net/afpfs-ng/files/patch-lib__midlevel.c
parentConvert to OptionsNG (diff)
afpfs-ng is an Apple Filing Protocol client that will allow BSD,
Linux and Mac OS X systems to access files exported from a Mac OS system with AFP over TCP. WWW: http://sourceforge.net/projects/afpfs-ng/ PR: ports/172780 Submitted by: Manuel Creach <manuel.creach@icloud.com>
Diffstat (limited to 'net/afpfs-ng/files/patch-lib__midlevel.c')
-rw-r--r--net/afpfs-ng/files/patch-lib__midlevel.c34
1 files changed, 34 insertions, 0 deletions
diff --git a/net/afpfs-ng/files/patch-lib__midlevel.c b/net/afpfs-ng/files/patch-lib__midlevel.c
new file mode 100644
index 000000000000..44210e670932
--- /dev/null
+++ b/net/afpfs-ng/files/patch-lib__midlevel.c
@@ -0,0 +1,34 @@
+--- lib/midlevel.c.orig 2008-03-08 16:08:18.000000000 +0000
++++ lib/midlevel.c 2012-10-14 13:11:44.000000000 +0000
+@@ -10,7 +10,7 @@
+ */
+
+
+-#include "afp.h"
++#include "afpfs-ng/afp.h"
+
+ #include <sys/stat.h>
+ #include <string.h>
+@@ -28,9 +28,9 @@
+ #include "users.h"
+ #include "did.h"
+ #include "resource.h"
+-#include "utils.h"
+-#include "codepage.h"
+-#include "midlevel.h"
++#include "afpfs-ng/utils.h"
++#include "afpfs-ng/codepage.h"
++#include "afpfs-ng/midlevel.h"
+ #include "afp_internal.h"
+ #include "forklist.h"
+ #include "uams.h"
+@@ -713,7 +713,7 @@
+ {
+
+ int ret,err=0;
+- int totalwritten = 0;
++ size_t totalwritten = 0;
+ uint64_t sizetowrite, ignored;
+ unsigned char flags = 0;
+ unsigned int max_packet_size=volume->server->tx_quantum;
+diff -Naur afpfs-ng-0.8.1.orig/lib/proto_attr.c afpfs-ng-0.8.1/lib/proto_attr.c