]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libblkid: add blkid_probe_get_sb_buffer()
authorThomas Weißschuh <thomas@t-8ch.de>
Mon, 19 Apr 2021 17:32:00 +0000 (19:32 +0200)
committerThomas Weißschuh <thomas@t-8ch.de>
Sun, 11 Sep 2022 06:37:15 +0000 (08:37 +0200)
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
libblkid/src/blkidP.h
libblkid/src/probe.c

index d0a2cfe17609f5755a016ea5d0acf8bf622bce3c..78b1cd1da6d29a9f9f2ca13a50e4a3e026f4e275 100644 (file)
@@ -433,9 +433,9 @@ extern int blkid_probe_get_idmag(blkid_probe pr, const struct blkid_idinfo *id,
                        __attribute__((nonnull(1)));
 
 /* returns superblock according to 'struct blkid_idmag' */
-extern unsigned char *_blkid_probe_get_sb(blkid_probe pr, const struct blkid_idmag *mag, size_t size);
+extern unsigned char *blkid_probe_get_sb_buffer(blkid_probe pr, const struct blkid_idmag *mag, size_t size);
 #define blkid_probe_get_sb(_pr, _mag, type) \
-                       ((type *) _blkid_probe_get_sb((_pr), _mag, sizeof(type)))
+                       ((type *) blkid_probe_get_sb_buffer((_pr), _mag, sizeof(type)))
 
 extern blkid_partlist blkid_probe_get_partlist(blkid_probe pr)
                        __attribute__((nonnull))
index fc638c9bbef55c5041c7d92f7e8183b0b2c3e08a..f54c4177858daff4a39e8eb054775a1d82fc70e7 100644 (file)
@@ -1114,7 +1114,7 @@ int blkid_probe_set_dimension(blkid_probe pr, uint64_t off, uint64_t size)
        return 0;
 }
 
-unsigned char *_blkid_probe_get_sb(blkid_probe pr, const struct blkid_idmag *mag, size_t size)
+unsigned char *blkid_probe_get_sb_buffer(blkid_probe pr, const struct blkid_idmag *mag, size_t size)
 {
        uint64_t hint_offset;