X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=devices%2Fparser.c;h=5e50dcbdafc292f8c05a29f986f1d5510259938b;hb=958d77320e2f56420daeafeec8b58eaa95df4e2a;hp=d1cdb43b632cab6255c7bc4c70ab9fdc1952ae78;hpb=1a73b890cfdc3c4971311e5ae737074498e9ff99;p=petitboot diff --git a/devices/parser.c b/devices/parser.c index d1cdb43..5e50dcb 100644 --- a/devices/parser.c +++ b/devices/parser.c @@ -21,12 +21,12 @@ 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)) + 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) {