From 46f1ac6c1a280706aa290bcc60349eb5f843cf17 Mon Sep 17 00:00:00 2001 From: Miklos Szeredi Date: Mon, 26 Aug 2013 11:23:08 +0200 Subject: [PATCH] Change generation and nlookup from 'unsigned long' to 'uint64_t' --- include/fuse_lowlevel.h | 4 ++-- lib/fuse.c | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/include/fuse_lowlevel.h b/include/fuse_lowlevel.h index df1f770..595f061 100644 --- a/include/fuse_lowlevel.h +++ b/include/fuse_lowlevel.h @@ -88,7 +88,7 @@ struct fuse_entry_param { * it as an error. * */ - unsigned long generation; + uint64_t generation; /** Inode attributes. * @@ -233,7 +233,7 @@ struct fuse_lowlevel_ops { * @param ino the inode number * @param nlookup the number of lookups to forget */ - void (*forget) (fuse_req_t req, fuse_ino_t ino, unsigned long nlookup); + void (*forget) (fuse_req_t req, fuse_ino_t ino, uint64_t nlookup); /** * Get file attributes diff --git a/lib/fuse.c b/lib/fuse.c index ea96892..e4031c7 100644 --- a/lib/fuse.c +++ b/lib/fuse.c @@ -2529,8 +2529,7 @@ static void do_forget(struct fuse *f, fuse_ino_t ino, uint64_t nlookup) forget_node(f, ino, nlookup); } -static void fuse_lib_forget(fuse_req_t req, fuse_ino_t ino, - unsigned long nlookup) +static void fuse_lib_forget(fuse_req_t req, fuse_ino_t ino, uint64_t nlookup) { do_forget(req_fuse(req), ino, nlookup); fuse_reply_none(req); -- 2.30.2