]> git.ozlabs.org Git - petitboot/blobdiff - discover/kboot-parser.c
Move waiter to library
[petitboot] / discover / kboot-parser.c
index f227ee35f910e604c6c4623ff9166d3d64a01f63..712456142f903c01ec04b17fb89c41ae587b64c3 100644 (file)
@@ -117,7 +117,9 @@ static int check_for_global_option(struct kboot_context *ctx,
        return 0;
 }
 
-static char *get_global_option(struct kboot_context *ctx, const char *name)
+static char *get_global_option(
+               struct kboot_context *ctx __attribute__((unused)),
+               const char *name)
 {
        int i;
 
@@ -290,8 +292,4 @@ out:
        return rc;
 }
 
-struct parser kboot_parser = {
-       .name     = "kboot.conf parser",
-       .priority = 98,
-       .parse    = parse
-};
+define_parser(kboot, 98, parse);