Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=fwlive.git;a=commitdiff;h=ce795e9617b532bc115b11107f32248e25d0164a

commit ce795e9617b532bc115b11107f32248e25d0164a
Author: James Buren <[email protected]>
Date:   Mon Mar 4 02:36:16 2013 -0600

use strng for some places where ternary operator was used

diff --git a/new/fwsetup/postconfig.c b/new/fwsetup/postconfig.c
index 7206407..72c5572 100644
--- a/new/fwsetup/postconfig.c
+++ b/new/fwsetup/postconfig.c
@@ -422,7 +422,7 @@ static bool user_action(struct account *account)
return false;
}

-  strfcpy(command,sizeof(command),"useradd -m -c '%s' -g '%s' -G '%s' -d '%s' 
-s '%s' '%s'",(account->name != 0) ? account->name : 
"",account->group,account->groups,account->home,account->shell,account->user);
+  strfcpy(command,sizeof(command),"useradd -m -c '%s' -g '%s' -G '%s' -d '%s' 
-s '%s' 
'%s'",strng(account->name),account->group,account->groups,account->home,account->shell,account->user);

if(!execute(command,INSTALL_ROOT,0))
return false;
diff --git a/new/fwsetup/ui_newt.c b/new/fwsetup/ui_newt.c
index 129787a..cab071e 100644
--- a/new/fwsetup/ui_newt.c
+++ b/new/fwsetup/ui_newt.c
@@ -147,7 +147,7 @@ static bool ui_dialog_format(struct format **targets,struct 
format *target)

label2 = 
newtLabel(0,textbox_height+label1_height+2,FORMAT_PARAMETERS_ENTRY_TEXT);

-  entry2 = 
newtEntry(entry_left,textbox_height+label1_height+2,(target->options != 0) ? 
target->options : "",entry2_width,&parameters,0);
+  entry2 = 
newtEntry(entry_left,textbox_height+label1_height+2,strng(target->options),entry2_width,&parameters,0);

listbox = 
newtListbox(0,textbox_height+label1_height+label2_height+3,listbox_height,NEWT_FLAG_SCROLL);
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to