]> git.ozlabs.org Git - petitboot/blobdiff - discover/kboot-parser.c
[discover client] Make devices persistent
[petitboot] / discover / kboot-parser.c
index f227ee35f910e604c6c4623ff9166d3d64a01f63..930fbe49897cd51193762076b08d693783b7cd5a 100644 (file)
@@ -11,8 +11,8 @@
 #include <sys/stat.h>
 
 #include <talloc/talloc.h>
+#include <log/log.h>
 
-#include "log.h"
 #include "pb-protocol/pb-protocol.h"
 #include "paths.h"
 #include "params.h"
@@ -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);