libblkid-tiny: add blkid_probe_set_id_label() stub
authorRafał Miłecki <rafal@milecki.pl>
Tue, 17 Dec 2019 07:28:34 +0000 (08:28 +0100)
committerRafał Miłecki <rafal@milecki.pl>
Fri, 20 Dec 2019 06:44:08 +0000 (07:44 +0100)
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 <rafal@milecki.pl>
libblkid-tiny/libblkid-tiny.c
libblkid-tiny/superblocks.h

index 05b4b99ef9dc2ac40dc891792b548e90e72cc724..52470ca89ac036df3fc171c1443299725c27c4f7 100644 (file)
@@ -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)) {
index cde8a40a711c980e20c03393a0bbf283f6db1e9a..ade2ae0a8753f87a700c0349530a38270b628674 100644 (file)
@@ -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);