diff mbox series

[05/10] libfrog: fix indenting errors in xfss_pptr_alloc

Message ID 167657880324.3477097.4962218122860520315.stgit@magnolia (mailing list archive)
State Superseded
Headers show
Series xfsprogs: actually use getparent ioctl | expand

Commit Message

Darrick J. Wong Feb. 16, 2023, 9:04 p.m. UTC
From: Darrick J. Wong <djwong@kernel.org>

Fix some indenting problems, and get rid of the xfs_ prefix.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
---
 libfrog/pptrs.c |   20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)
diff mbox series

Patch

diff --git a/libfrog/pptrs.c b/libfrog/pptrs.c
index 66a34246..5a3a7e2b 100644
--- a/libfrog/pptrs.c
+++ b/libfrog/pptrs.c
@@ -13,17 +13,17 @@ 
 
 /* Allocate a buffer large enough for some parent pointer records. */
 static inline struct xfs_pptr_info *
-xfs_pptr_alloc(
-      size_t                  nr_ptrs)
+alloc_pptr_buf(
+	size_t			nr_ptrs)
 {
-      struct xfs_pptr_info    *pi;
+	struct xfs_pptr_info	*pi;
 
-      pi = malloc(xfs_pptr_info_sizeof(nr_ptrs));
-      if (!pi)
-              return NULL;
-      memset(pi, 0, sizeof(struct xfs_pptr_info));
-      pi->pi_ptrs_size = nr_ptrs;
-      return pi;
+	pi = malloc(xfs_pptr_info_sizeof(nr_ptrs));
+	if (!pi)
+		return NULL;
+	memset(pi, 0, sizeof(struct xfs_pptr_info));
+	pi->pi_ptrs_size = nr_ptrs;
+	return pi;
 }
 
 /* Walk all parents of the given file handle. */
@@ -39,7 +39,7 @@  handle_walk_parents(
 	unsigned int		i;
 	ssize_t			ret = -1;
 
-	pi = xfs_pptr_alloc(4);
+	pi = alloc_pptr_buf(4);
 	if (!pi)
 		return -1;