--- embedtools/src/pceng.c 2011/07/22 13:29:29 1.1.2.1 +++ embedtools/src/pceng.c 2011/07/22 13:35:06 1.1.2.2 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ - * $Id: pceng.c,v 1.1.2.1 2011/07/22 13:29:29 misho Exp $ + * $Id: pceng.c,v 1.1.2.2 2011/07/22 13:35:06 misho Exp $ * ************************************************************************* The ELWIX and AITNET software is distributed under the following @@ -49,6 +49,7 @@ SUCH DAMAGE. int Verbose; extern char compiled[], compiledby[], compilehost[]; +sl_config cfg; static void @@ -60,7 +61,7 @@ Usage() "\n" "\t-v\t\tVerbose ...\n" "\t-b\t\tRun in batch mode ...\n" - "\t-c \t\tConfig events file ...\n" + "\t-c \tConfig events file ...\n" "\n", compiled, compiledby, compilehost); } @@ -90,5 +91,11 @@ main(int argc, char **argv) argc -= optind; argv += optind; + if (LoadConfig(szConf, &cfg)) { + printf("Error:: #%d - %s\n", cfg_GetErrno(), cfg_GetError()); + return 1; + } + + UnloadConfig(&cfg); return 0; }