Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=fwlive.git;a=commitdiff;h=4092379fba28913bb774a0acfed3ad740bc807ab
commit 4092379fba28913bb774a0acfed3ad740bc807ab Author: James Buren <[email protected]> Date: Sun Feb 17 15:04:12 2013 -0600 in space section, simplify reset of the key by resetting the other member of the union to its initial value. diff --git a/src/ui_newt.c b/src/ui_newt.c index 41c3686..a8ca249 100644 --- a/src/ui_newt.c +++ b/src/ui_newt.c @@ -1094,9 +1094,7 @@ extern bool ui_window_partition(struct device **devices,struct disk **disks) newtListboxInsertEntry(listbox,text,(void *) key.data,(void *) action.data); - key.delete = false; - - key.space = true; + key.data = action.data; if(disk_get_free_size(disk) > 0) { @@ -1121,11 +1119,7 @@ extern bool ui_window_partition(struct device **devices,struct disk **disks) newtListboxInsertEntry(listbox,text,(void *) key.data,(void *) action.data); - key.partition = false; - - key.partition_number = 0; - - key.space = true; + key.data = action.data; } newtListboxDeleteEntry(listbox,(void *) action.data); _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
