Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=fwsetup-ng.git;a=commitdiff;h=5656581b72c1ab5bdd2e817b34295466f4bd1be8

commit 5656581b72c1ab5bdd2e817b34295466f4bd1be8
Author: James Buren <[email protected]>
Date:   Tue Sep 11 10:27:06 2012 -0500

set cached labels directly

diff --git a/src/main.c b/src/main.c
index a5631e8..bf123b4 100644
--- a/src/main.c
+++ b/src/main.c
@@ -28,13 +28,9 @@ 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;
-  }
+  g->doslabel = ped_disk_type_get("msdos");
+
+  g->gptlabel = ped_disk_type_get("gpt");

code = ui_main(argc,argv);
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to