# HG changeset patch # User Matti Hamalainen # Date 1455239411 -7200 # Node ID 5ec395268fd309f9ae8d080f77e6964175b4ee23 # Parent 2ab9ab4b59eb886379d2abe0a1b0426c60fd0da1 Fix to comply with th_ioctx API change. diff -r 2ab9ab4b59eb -r 5ec395268fd3 sidinfo.c --- a/sidinfo.c Fri Feb 12 01:37:25 2016 +0200 +++ b/sidinfo.c Fri Feb 12 03:10:11 2016 +0200 @@ -636,8 +636,8 @@ { // Initialize SLDB int ret; - th_ioctx *ctx = th_io_new(&th_stdio_io_ops); - if (ctx == NULL || th_io_open(ctx, setSLDBPath, "r") != THERR_OK) + th_ioctx *ctx; + if ((ctx = th_io_fopen(&th_stdio_io_ops, setSLDBPath, "r")) == NULL) { THERR("Could not open SLDB '%s'.\n", setSLDBPath); goto out;