changeset 91:5ec395268fd3

Fix to comply with th_ioctx API change.
author Matti Hamalainen <ccr@tnsp.org>
date Fri, 12 Feb 2016 03:10:11 +0200
parents 2ab9ab4b59eb
children d088aca6d333
files sidinfo.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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;