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 );
|
config = *config_init( argc, argv );
|
||||||
|
|
||||||
/* Chf initialization with msgcat subsystem; notice that on
|
/* Chf initialization with msgcat subsystem
|
||||||
some systems (e.g. Digital UNIX) catopen() can succeed even
|
*/
|
||||||
if it was not able to open the right message catalog;
|
if ( ( ChfStaticInit( config.progname, /* Application's name */
|
||||||
better try it now.
|
|
||||||
*/
|
|
||||||
if ( ( ChfStaticInit( argv[ 0 ], /* Application's name */
|
|
||||||
CHF_DEFAULT, /* Options */
|
CHF_DEFAULT, /* Options */
|
||||||
message_table, /* Name of the message catalog */
|
message_table, /* Name of the message catalog */
|
||||||
message_table_size, /* message catalog size */
|
message_table_size, /* message catalog size */
|
||||||
|
|
Loading…
Reference in a new issue