# HG changeset patch # User Matti Hamalainen # Date 1531112930 -10800 # Node ID e6d60eacf24d4a0bb031daa02c5bd55beac0ba9b # Parent 256002aa06ccab6e98c7a25fb6a7a4ac997f14a9 Update to new th_io_fopen() API. diff -r 256002aa06cc -r e6d60eacf24d main.c --- a/main.c Mon Jul 09 07:28:45 2018 +0300 +++ b/main.c Mon Jul 09 08:08:50 2018 +0300 @@ -2059,11 +2059,12 @@ th_ioctx *ctx; setConfigFile = th_strdup_printf("%s%c%s", setConfigDir, SET_DIR_SEPARATOR, SET_CONFIG_FILE); - if ((ctx = th_io_fopen(&th_stdio_io_ops, setConfigFile, "r")) != NULL) + if (th_io_fopen(&ctx, &th_stdio_io_ops, setConfigFile, "r") == THERR_OK) { th_io_set_handlers(ctx, nn_ioctx_errfunc, nn_ioctx_msgfunc); - THMSG(0, "Reading configuration from '%s'.\n", setConfigFile); + THMSG(0, "Reading configuration from '%s'.\n", + setConfigFile); th_cfg_read(ctx, cfg); th_io_close(ctx);