Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=fwsetup-ng.git;a=commitdiff;h=62e85f546225ac136ee833c2c5da91e6c03498b0
commit 62e85f546225ac136ee833c2c5da91e6c03498b0 Author: James Buren <[email protected]> Date: Tue Sep 11 05:22:19 2012 -0500 cache pointers to the MSDOS and GPT label types diff --git a/src/local.h b/src/local.h index 1ba98b0..58bdb61 100644 --- a/src/local.h +++ b/src/local.h @@ -26,6 +26,8 @@ struct global { + PedDiskType *doslabel; + PedDiskType *gptlabel; bool netinstall; }; diff --git a/src/main.c b/src/main.c index 8bbee41..ebbb1f7 100644 --- a/src/main.c +++ b/src/main.c @@ -28,6 +28,14 @@ extern int main(int argc,char **argv) ped_unit_set_default(PED_UNIT_SECTOR); + for( PedDiskType *i = 0 ; (i = ped_disk_type_get_next(i)) != 0 ; ) + { + if(strcmp(i->name,"msdos") == 0) + g.doslabel = i; + else if(strcmp(i->name,"gpt") == 0) + g.gptlabel = i; + } + code = ui_main(argc,argv); fclose(logfile); @@ -39,6 +47,8 @@ extern int main(int argc,char **argv) struct global g = { + .doslabel = 0, + .gptlabel = 0, .netinstall = true }; _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
