X-Git-Url: https://arthur.barton.de/gitweb/?a=blobdiff_plain;f=libatalk%2Fadouble%2Fad_lock.c;h=38d2226eec845cb8b0f48d3dbfb6e787c489da9f;hb=14874ef66d68c5200a9a42a7408d022d58211898;hp=5899afa67271411936effcf9cefc87f05c009dba;hpb=bdc45d00129b791a92255a63b5b3934e350d40ce;p=netatalk.git diff --git a/libatalk/adouble/ad_lock.c b/libatalk/adouble/ad_lock.c index 5899afa6..38d2226e 100644 --- a/libatalk/adouble/ad_lock.c +++ b/libatalk/adouble/ad_lock.c @@ -19,10 +19,12 @@ #endif /* HAVE_CONFIG_H */ #include +#include #include #include #include +#include #include @@ -228,9 +230,9 @@ static int adf_findxlock(struct ad_fd *ad, 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) @@ -248,9 +250,9 @@ int start = off; 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)