naming; use config.progname instead of raw argv[0]
This commit is contained in:
parent
c47d806c0c
commit
145a6430d8
6 changed files with 3 additions and 6 deletions
|
@ -41,12 +41,9 @@ int main( int argc, char** argv )
|
|||
{
|
||||
config = *config_init( argc, argv );
|
||||
|
||||
/* Chf initialization with msgcat subsystem; notice that on
|
||||
some systems (e.g. Digital UNIX) catopen() can succeed even
|
||||
if it was not able to open the right message catalog;
|
||||
better try it now.
|
||||
*/
|
||||
if ( ( ChfStaticInit( argv[ 0 ], /* Application's name */
|
||||
/* Chf initialization with msgcat subsystem
|
||||
*/
|
||||
if ( ( ChfStaticInit( config.progname, /* Application's name */
|
||||
CHF_DEFAULT, /* Options */
|
||||
message_table, /* Name of the message catalog */
|
||||
message_table_size, /* message catalog size */
|
||||
|
|
Loading…
Reference in a new issue