diff options
author | Martin Wilke <miwi@FreeBSD.org> | 2013-02-18 04:43:58 +0000 |
---|---|---|
committer | Martin Wilke <miwi@FreeBSD.org> | 2013-02-18 04:43:58 +0000 |
commit | df2e80c8b472e780b4cc9bfda947b396898cd81d (patch) | |
tree | 6c4c24197c5ec540d02ef640e97d288607c97e01 /net/afpfs-ng/files/patch-lib__uams.c | |
parent | Convert 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 '')
-rw-r--r-- | net/afpfs-ng/files/patch-lib__uams.c | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/net/afpfs-ng/files/patch-lib__uams.c b/net/afpfs-ng/files/patch-lib__uams.c new file mode 100644 index 000000000000..e34c19008971 --- /dev/null +++ b/net/afpfs-ng/files/patch-lib__uams.c @@ -0,0 +1,45 @@ +--- lib/uams.c.orig 2008-01-04 03:52:44.000000000 +0000 ++++ lib/uams.c 2012-10-14 13:11:44.000000000 +0000 +@@ -8,10 +8,10 @@ + + #include <string.h> + #include <stdlib.h> +-#include "dsi.h" +-#include "afp.h" +-#include "utils.h" +-#include "uams_def.h" ++#include "afpfs-ng/dsi.h" ++#include "afpfs-ng/afp.h" ++#include "afpfs-ng/utils.h" ++#include "afpfs-ng/uams_def.h" + #include "config.h" + + #ifdef HAVE_LIBGCRYPT +@@ -180,7 +180,7 @@ + goto cleartxt_fail; + + p += copy_to_pascal(p, username) + 1; +- if ((int)p & 0x1) ++ if ((long)p & 0x1) + len--; + else + p++; +@@ -230,7 +230,7 @@ + goto cleartxt_fail; + + p += copy_to_pascal(p, username) + 1; +- if ((int)p & 0x1) ++ if ((long)p & 0x1) + len--; + else + p++; +@@ -580,7 +580,7 @@ + if (ai == NULL) + goto dhx_noctx_fail; + d += copy_to_pascal(ai, username) + 1; +- if (((int)d) % 2) ++ if (((long)d) % 2) + d++; + else + ai_len--; +diff -Naur afpfs-ng-0.8.1.orig/lib/users.c afpfs-ng-0.8.1/lib/users.c |