1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-27 10:03:20 +00:00
freebsd-ports/net/afpfs-ng/files/patch-lib__midlevel.c
Martin Wilke df2e80c8b4 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>
2013-02-18 04:43:58 +00:00

35 lines
831 B
C

--- 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