chiark / gitweb /
build argv[] for builtin commands
[elogind.git] / udev / udev-builtin-blkid.c
index a787bf2f6c3a948e2c860ebbd04828a950a042e0..04ad6a444db8a4cc30bd90004be20b6a7bdbf7f9 100644 (file)
@@ -105,7 +105,7 @@ static int probe_superblocks(blkid_probe pr)
        return blkid_do_safeprobe(pr);
 }
 
-static int builtin_blkid(struct udev_device *dev, const char *command, bool test)
+static int builtin_blkid(struct udev_device *dev, int argc, char *argv[], bool test)
 {
        char *device = "/dev/sda3";
        int64_t offset = 0;
@@ -167,5 +167,5 @@ const struct udev_builtin udev_builtin_blkid = {
        .name = "blkid",
        .cmd = builtin_blkid,
        .help = "filesystem and partition probing",
-       .run_once = false,
+       .run_once = true,
 };