#endif /* HAVE_CONFIG_H */
#include <atalk/adouble.h>
+#include <atalk/logger.h>
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
+#include <inttypes.h>
#include <string.h>
translate a data fork lock to an offset
*/
-static off_t df2off(int off)
+static off_t df2off(off_t off)
{
-int start = off;
+ off_t start = off;
if (off == AD_FILELOCK_OPEN_WR)
start = LOCK_DATA_WR;
else if (off == AD_FILELOCK_OPEN_RD)
translate a resource fork lock to an offset
*/
-static off_t hf2off(int off)
+static off_t hf2off(off_t off)
{
-int start = off;
+ off_t start = off;
if (off == AD_FILELOCK_OPEN_WR)
start = LOCK_RSRC_WR;
else if (off == AD_FILELOCK_OPEN_RD)