Mercurial > hg > nnchat
comparison main.c @ 702:46efb0b16339
Adjust to th-libs ioctx API change.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sat, 25 Jan 2020 13:06:31 +0200 |
parents | f3ec1cb11cea |
children | d2c7ef3c6d9c |
comparison
equal
deleted
inserted
replaced
701:f3b119599b3a | 702:46efb0b16339 |
---|---|
1304 | 1304 |
1305 printMsgQ(currWin, "Configuration saved in file '%s', res=%d\n", | 1305 printMsgQ(currWin, "Configuration saved in file '%s', res=%d\n", |
1306 ctx->filename, th_cfg_write(ctx, cfg)); | 1306 ctx->filename, th_cfg_write(ctx, cfg)); |
1307 | 1307 |
1308 error: | 1308 error: |
1309 th_io_free(ctx); | 1309 th_io_close(ctx); |
1310 return 0; | 1310 return 0; |
1311 } | 1311 } |
1312 | 1312 |
1313 | 1313 |
1314 int nncmd_quit(th_conn_t *conn, char *buf) | 1314 int nncmd_quit(th_conn_t *conn, char *buf) |
2062 | 2062 |
2063 THMSG(0, "Reading configuration from '%s'.\n", | 2063 THMSG(0, "Reading configuration from '%s'.\n", |
2064 setConfigFile); | 2064 setConfigFile); |
2065 | 2065 |
2066 th_cfg_read(ctx, cfg); | 2066 th_cfg_read(ctx, cfg); |
2067 th_io_free(ctx); | 2067 th_io_close(ctx); |
2068 } | 2068 } |
2069 } | 2069 } |
2070 | 2070 |
2071 if (setProxyURI && !argHandleProxyURI(setProxyURI)) | 2071 if (setProxyURI && !argHandleProxyURI(setProxyURI)) |
2072 goto err_exit; | 2072 goto err_exit; |