From: Darrick J. Wong Date: Mon, 9 Sep 2019 19:37:07 +0000 (-0400) Subject: libfrog: move libfrog.h to libfrog/util.h X-Git-Tag: v5.3.0-rc2~133 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=660b5d9692691e384119dd11a8d60a900ef7b542;p=thirdparty%2Fxfsprogs-dev.git libfrog: move libfrog.h to libfrog/util.h Move this header to libfrog since the code is there already. Signed-off-by: Darrick J. Wong Reviewed-by: Dave Chinner Signed-off-by: Eric Sandeen --- diff --git a/libfrog/fsgeom.c b/libfrog/fsgeom.c index 9a428bf6a..bc872834d 100644 --- a/libfrog/fsgeom.c +++ b/libfrog/fsgeom.c @@ -4,7 +4,7 @@ */ #include "libxfs.h" #include "fsgeom.h" -#include "libfrog.h" +#include "util.h" void xfs_report_geom( diff --git a/libfrog/util.c b/libfrog/util.c index ff935184c..8fb10cf82 100644 --- a/libfrog/util.c +++ b/libfrog/util.c @@ -4,7 +4,7 @@ * All Rights Reserved. */ #include "platform_defs.h" -#include "libfrog.h" +#include "util.h" /* * libfrog is a collection of miscellaneous userspace utilities. diff --git a/include/libfrog.h b/libfrog/util.h similarity index 65% rename from include/libfrog.h rename to libfrog/util.h index d33f01468..1b97881bf 100644 --- a/include/libfrog.h +++ b/libfrog/util.h @@ -3,9 +3,9 @@ * Copyright (c) 2000-2005 Silicon Graphics, Inc. * All Rights Reserved. */ -#ifndef __LIBFROG_UTIL_H_ -#define __LIBFROG_UTIL_H_ +#ifndef __LIBFROG_UTIL_H__ +#define __LIBFROG_UTIL_H__ unsigned int log2_roundup(unsigned int i); -#endif /* __LIBFROG_UTIL_H_ */ +#endif /* __LIBFROG_UTIL_H__ */ diff --git a/mkfs/xfs_mkfs.c b/mkfs/xfs_mkfs.c index 50913866b..6254fd426 100644 --- a/mkfs/xfs_mkfs.c +++ b/mkfs/xfs_mkfs.c @@ -3,7 +3,7 @@ * Copyright (c) 2000-2005 Silicon Graphics, Inc. * All Rights Reserved. */ -#include "libfrog.h" +#include "libfrog/util.h" #include "libxfs.h" #include #include "xfs_multidisk.h" diff --git a/repair/sb.c b/repair/sb.c index 3955dfba2..91a36dd34 100644 --- a/repair/sb.c +++ b/repair/sb.c @@ -3,7 +3,7 @@ * Copyright (c) 2000-2003,2005 Silicon Graphics, Inc. * All Rights Reserved. */ -#include "libfrog.h" +#include "libfrog/util.h" #include "libxfs.h" #include "libxcmd.h" #include "libxlog.h" diff --git a/scrub/disk.c b/scrub/disk.c index 91e13140b..dcdd5ba83 100644 --- a/scrub/disk.c +++ b/scrub/disk.c @@ -17,7 +17,7 @@ # include #endif #include "platform_defs.h" -#include "libfrog.h" +#include "libfrog/util.h" #include "libfrog/paths.h" #include "xfs_scrub.h" #include "common.h" diff --git a/scrub/phase1.c b/scrub/phase1.c index d123c4199..3211a488a 100644 --- a/scrub/phase1.c +++ b/scrub/phase1.c @@ -13,7 +13,7 @@ #include #include #include -#include "libfrog.h" +#include "libfrog/util.h" #include "libfrog/workqueue.h" #include "input.h" #include "libfrog/paths.h"