From 69c63c123c6a4a5701e080ff04792145fab1a705 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ale=C5=A1=20K=C5=99enek?= Date: Mon, 30 Apr 2007 16:04:49 +0000 Subject: [PATCH] handle errors from edg_wll_log_{proxy|direct}_connect --- org.glite.lb.client/src/producer.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/org.glite.lb.client/src/producer.c b/org.glite.lb.client/src/producer.c index 1acbd6d..92fc12a 100644 --- a/org.glite.lb.client/src/producer.c +++ b/org.glite.lb.client/src/producer.c @@ -139,7 +139,7 @@ int edg_wll_DoLogEventProxy( memset(&conn,0,sizeof(conn)); /* connect to lbproxy */ - if ((ret = edg_wll_log_proxy_connect(ctx,&conn)) < 0) { + if ((ret = edg_wll_log_proxy_connect(ctx,&conn))) { edg_wll_UpdateError(ctx,EDG_WLL_IL_PROTO,"edg_wll_DoLogEventProxy(): edg_wll_log_proxy_write error"); goto edg_wll_DoLogEventProxy_end; } @@ -183,7 +183,7 @@ int edg_wll_DoLogEventDirect( memset(&conn,0,sizeof(conn)); /* connect to bkserver */ - if ((ret = edg_wll_log_direct_connect(ctx,&conn)) < 0) { + if ((ret = edg_wll_log_direct_connect(ctx,&conn))) { edg_wll_UpdateError(ctx,EDG_WLL_IL_PROTO,"edg_wll_DoLogEventDirect(): edg_wll_log_direct_connect error"); goto edg_wll_DoLogEventDirect_end; } @@ -944,12 +944,12 @@ int edg_wll_RegisterJobProxy( (int) ctx->p_tmp_timeout.tv_sec, (int) ctx->p_tmp_timeout.tv_usec); #endif /* connect to bkserver */ - if ((ret = edg_wll_log_direct_connect(ctx,&con_bkserver)) < 0) { + if ((ret = edg_wll_log_direct_connect(ctx,&con_bkserver))) { edg_wll_UpdateError(ctx,EAGAIN,"edg_wll_RegisterJobProxy(): edg_wll_log_direct_connect error"); goto edg_wll_registerjobproxy_end; } /* connect to lbproxy */ - if ((ret = edg_wll_log_proxy_connect(ctx,&con_lbproxy)) < 0) { + if ((ret = edg_wll_log_proxy_connect(ctx,&con_lbproxy))) { edg_wll_UpdateError(ctx,EAGAIN,"edg_wll_RegisterJobProxy(): edg_wll_log_proxy_connect error"); goto edg_wll_registerjobproxy_end; } -- 1.8.2.3