]> git.ozlabs.org Git - petitboot/blobdiff - devices/parser.c
Make kboot_parser global options array static
[petitboot] / devices / parser.c
index b9edff7b4fa01160d4824600f6d61d76ed96da34..5e50dcbdafc292f8c05a29f986f1d5510259938b 100644 (file)
@@ -21,13 +21,13 @@ void iterate_parsers(const char *devpath, const char *mountpoint)
 {
        int i;
 
-       pb_log("trying parsers for %s@%s\n", devpath, mountpoint);
+       pb_log("trying parsers for %s\n", devpath);
 
        for (i = 0; parsers[i]; i++) {
                pb_log("\ttrying parser '%s'\n", parsers[i]->name);
                /* just use a dummy device path for now */
-               if (parsers[i]->parse(devpath, mountpoint))
-                       /*return*/;
+               if (parsers[i]->parse(devpath))
+                       return;
        }
        pb_log("\tno boot_options found\n");
 }
@@ -67,20 +67,6 @@ void free_boot_option(struct boot_option *opt)
        free(opt);
 }
 
-char *join_paths(const char *a, const char *b)
-{
-       char *full_path;
-
-       full_path = malloc(strlen(a) + strlen(b) + 2);
-
-       strcpy(full_path, a);
-       if (b[0] != '/')
-               strcat(full_path, "/");
-       strcat(full_path, b);
-
-       return full_path;
-}
-
 const char *generic_icon_file(enum generic_icon_type type)
 {
        switch (type) {