From: Thomas Weißschuh Date: Mon, 19 Apr 2021 17:32:00 +0000 (+0200) Subject: libblkid: add blkid_probe_get_sb_buffer() X-Git-Tag: v2.39-rc1~523^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1020a3ddd1f97e1491d1e9102bb54360a6341caa;p=thirdparty%2Futil-linux.git libblkid: add blkid_probe_get_sb_buffer() Signed-off-by: Thomas Weißschuh --- diff --git a/libblkid/src/blkidP.h b/libblkid/src/blkidP.h index d0a2cfe176..78b1cd1da6 100644 --- a/libblkid/src/blkidP.h +++ b/libblkid/src/blkidP.h @@ -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)) diff --git a/libblkid/src/probe.c b/libblkid/src/probe.c index fc638c9bbe..f54c417785 100644 --- a/libblkid/src/probe.c +++ b/libblkid/src/probe.c @@ -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;