From: Rafał Miłecki Date: Tue, 17 Dec 2019 07:28:34 +0000 (+0100) Subject: libblkid-tiny: add blkid_probe_set_id_label() stub X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=157924dfca61d37f29017ebb4a5eab8137a0cd27;p=oweals%2Ffstools.git libblkid-tiny: add blkid_probe_set_id_label() stub This stub will allow porting more upstream code without commenting out calls and them unused variables. This will simplify maintenance. Signed-off-by: Rafał Miłecki --- diff --git a/libblkid-tiny/libblkid-tiny.c b/libblkid-tiny/libblkid-tiny.c index 05b4b99..52470ca 100644 --- a/libblkid-tiny/libblkid-tiny.c +++ b/libblkid-tiny/libblkid-tiny.c @@ -101,6 +101,12 @@ unsigned char *blkid_probe_get_buffer(blkid_probe pr, return bf->data; } +int blkid_probe_set_id_label(blkid_probe pr, const char *name, + const unsigned char *data, size_t len) +{ + return -ENOTSUP; +} + int blkid_probe_set_label(blkid_probe pr, unsigned char *label, size_t len) { if (len > (sizeof(pr->label) - 1)) { diff --git a/libblkid-tiny/superblocks.h b/libblkid-tiny/superblocks.h index cde8a40..ade2ae0 100644 --- a/libblkid-tiny/superblocks.h +++ b/libblkid-tiny/superblocks.h @@ -97,7 +97,7 @@ extern int blkid_probe_set_uuid(blkid_probe pr, unsigned char *uuid); extern int blkid_probe_set_uuid_as(blkid_probe pr, unsigned char *uuid, const char *name); extern int blkid_probe_set_id_label(blkid_probe pr, const char *name, - unsigned char *data, size_t len); + const unsigned char *data, size_t len); extern int blkid_probe_set_utf8_id_label(blkid_probe pr, const char *name, unsigned char *data, size_t len, int enc);