Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Inline macros

It is used only once and there is no reason to keep it.
Clean weird "pseudo" structure.
  • Loading branch information...
commit 15c07591ee415fa861a06af763fbc514540da143 1 parent 0fc6746
@anatol authored
Showing with 2 additions and 9 deletions.
  1. +2 −5 fuse_internal.c
  2. +0 −4 fuse_internal.h
View
7 fuse_internal.c
@@ -674,11 +674,8 @@ fuse_internal_readdir_processdata(vnode_t vp,
break;
}
-#define GENERIC_DIRSIZ(dp) \
- ((sizeof(struct dirent) - (FUSE_MAXNAMLEN + 1)) + \
- (((dp)->d_namlen + 1 + 3) & ~3))
-
- bytesavail = GENERIC_DIRSIZ((struct pseudo_dirent *)&fudge->namelen);
+ bytesavail = (sizeof(struct dirent) - (FUSE_MAXNAMLEN + 1)) +
+ ((fudge->namelen + 1 + 3) & ~3);
if (bytesavail > (size_t)uio_resid(uio)) {
err = -1;
View
4 fuse_internal.h
@@ -660,10 +660,6 @@ fuse_internal_fsync_callback(struct fuse_ticket *ticket, uio_t uio);
/* readdir */
-struct pseudo_dirent {
- uint32_t d_namlen;
-};
-
int
fuse_internal_readdir(vnode_t vp,
uio_t uio,
Please sign in to comment.
Something went wrong with that request. Please try again.