changeset 628:fd0e1589e268

API update.
author Matti Hamalainen <ccr@tnsp.org>
date Sat, 21 Jun 2014 05:59:22 +0300
parents 493c08d452d9
children 005d7a0351b6
files main.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/main.c	Sat Jun 21 05:11:14 2014 +0300
+++ b/main.c	Sat Jun 21 05:59:22 2014 +0300
@@ -2226,8 +2226,8 @@
         if (optProxyUserID == NULL)
             optProxyUserID = "James Bond";
 
-        if (th_conn_set_proxy(conn, optProxyType, optProxyPort, optProxyServer, optProxyAuthType) != 0 ||
-            th_conn_set_proxy_auth_user(conn, optProxyUserID, optProxyPassword) != 0)
+        if (th_conn_set_proxy(conn, optProxyType, optProxyPort, optProxyServer, optProxyAuthType) != THERR_OK ||
+            th_conn_set_proxy_auth_user(conn, optProxyUserID, optProxyPassword) != THERR_OK)
         {
             errorMsg("Error setting proxy information.\n");
             goto err_exit;