]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
misc: cleanup UUID_STR_LEN definitions
authorKarel Zak <kzak@redhat.com>
Fri, 15 Sep 2017 11:25:32 +0000 (13:25 +0200)
committerKarel Zak <kzak@redhat.com>
Fri, 15 Sep 2017 11:25:32 +0000 (13:25 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
libblkid/src/blkidP.h
libblkid/src/partitions/partitions.h
libblkid/src/probe.c
libblkid/src/superblocks/superblocks.h
libfdisk/src/fdiskP.h
libfdisk/src/gpt.c
libuuid/src/uuid.h
misc-utils/uuidparse.c
sys-utils/swapon.c

index c79132773f98d4a7f19a82912c6c30a427f16314..8108b0efab2c1145eb26c3e59b3a08946499cf13 100644 (file)
 #include <stdarg.h>
 #include <stdint.h>
 
+#ifdef HAVE_LIBUUID
+# include <uuid.h>
+#else
+# define UUID_STR_LEN   37
+#endif
+
 #include "c.h"
 #include "bitops.h"    /* $(top_srcdir)/include/ */
 #include "blkdev.h"
index 5ed2681e307a5d0dc64b51832aefa33cced42a6e..1d99fb6a36e56f0444ec4d6df9bac9ad9e9d263f 100644 (file)
@@ -4,10 +4,6 @@
 #include "blkidP.h"
 #include "pt-mbr.h"
 
-#ifndef UUID_STR_LEN
-#define UUID_STR_LEN   37
-#endif
-
 extern int blkid_partitions_get_flags(blkid_probe pr);
 
 extern blkid_parttable blkid_partlist_new_parttable(blkid_partlist ls,
index 21cd790e95d679f0189ff7083318e78c51889d22..476461bc4763b521bf7e58c524b8526532351c0d 100644 (file)
 #include <stdarg.h>
 #include <limits.h>
 
-#ifdef HAVE_LIBUUID
-# include <uuid.h>
-#endif
-
 #include "blkidP.h"
 #include "all-io.h"
 #include "sysfs.h"
index 3dea7b88139798daa89351d6523bdb9fbb5b84e8..695c3b783d59b7a8fa5f2fdecbaebc12928a586a 100644 (file)
@@ -9,10 +9,6 @@
 
 #include "blkidP.h"
 
-#ifndef UUID_STR_LEN
-#define UUID_STR_LEN   37
-#endif
-
 extern const struct blkid_idinfo cramfs_idinfo;
 extern const struct blkid_idinfo swap_idinfo;
 extern const struct blkid_idinfo swsuspend_idinfo;
index 23903b4b47fbe5051772c107a27a58f8ce39d3ad..b81d6fc7a2349562aae7be42b1a9f4c9edae25f0 100644 (file)
@@ -16,6 +16,7 @@
 #include <sys/stat.h>
 #include <sys/types.h>
 #include <unistd.h>
+#include <uuid.h>
 
 #include "c.h"
 #include "libfdisk.h"
index 7134a36ce295b844fb421ce36f3f3923273aeca5..26d04f1d881fe47292d3811c9715e7a8b7b4412f 100644 (file)
@@ -286,10 +286,6 @@ static struct fdisk_parttype gpt_parttypes[] =
 #define gpt_partition_start(_e)                le64_to_cpu((_e)->lba_start)
 #define gpt_partition_end(_e)          le64_to_cpu((_e)->lba_end)
 
-#ifndef UUID_STR_LEN
-#define UUID_STR_LEN   37
-#endif
-
 /*
  * in-memory fdisk GPT stuff
  */
index 2fd470558e05b84d1c2c5dae6bd152b85b371539..03c232caad50b4998e44c8e5ca54aa22ba68211f 100644 (file)
@@ -62,6 +62,8 @@ typedef unsigned char uuid_t[16];
 #define UUID_TYPE_SHIFT      4
 #define UUID_TYPE_MASK     0xf
 
+#define UUID_STR_LEN   37
+
 /* Allow UUID constants to be defined */
 #ifdef __GNUC__
 #define UUID_DEFINE(name,u0,u1,u2,u3,u4,u5,u6,u7,u8,u9,u10,u11,u12,u13,u14,u15) \
@@ -99,8 +101,6 @@ extern int uuid_is_null(const uuid_t uu);
 /* parse.c */
 extern int uuid_parse(const char *in, uuid_t uu);
 
-#define UUID_STR_LEN   37
-
 /* unparse.c */
 extern void uuid_unparse(const uuid_t uu, char *out);
 extern void uuid_unparse_lower(const uuid_t uu, char *out);
index 5fa34b23d2241346cf7ab621009532a9c4c9e2d2..19bb3f1b919308482f61f1de6623216b189c59be 100644 (file)
@@ -55,8 +55,6 @@
 #include "uuid.h"
 #include "xalloc.h"
 
-#define UUID_STR_LEN 37
-
 /* column IDs */
 enum {
        COL_UUID = 0,
index 1e7d3c0b527a308e2661c9bc5ffbfdfc323e13d7..6bf67a91f81d5ba586225e84b318d50e3b12715e 100644 (file)
@@ -68,7 +68,7 @@
 #define MAX_PAGESIZE   (64 * 1024)
 
 #ifndef UUID_STR_LEN
-#define UUID_STR_LEN   37
+# define UUID_STR_LEN  37
 #endif
 
 enum {