From c47b35efdf5a659feab2484439bdb235a3d8efdb Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ji=C5=99=C3=AD=20Filipovi=C4=8D?= Date: Mon, 7 May 2012 21:26:23 +0000 Subject: [PATCH] reverted to not modify context-int --- org.glite.lb.common/interface/context-int.h | 1 - org.glite.lb.common/src/context.c | 9 +-------- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/org.glite.lb.common/interface/context-int.h b/org.glite.lb.common/interface/context-int.h index 18a7423..caa9602 100644 --- a/org.glite.lb.common/interface/context-int.h +++ b/org.glite.lb.common/interface/context-int.h @@ -61,7 +61,6 @@ typedef struct _edg_wll_SeqCode { /* 40-51 EV.CODE=%03d: */ /* 53-56 SRC=%c */ char condor[EDG_WLL_SEQ_CONDOR_SIZE]; - char cream[EDG_WLL_SEQ_SIZE]; } edg_wll_SeqCode; /* non-gsi one-element analogy of connPool for L&B Proxy server */ diff --git a/org.glite.lb.common/src/context.c b/org.glite.lb.common/src/context.c index 16d9893..b6ed8ab 100644 --- a/org.glite.lb.common/src/context.c +++ b/org.glite.lb.common/src/context.c @@ -418,10 +418,7 @@ char *edg_wll_GetSequenceCode(const edg_wll_Context ctx) ret = strdup(ctx->p_seqcode.condor); break; case EDG_WLL_SEQ_CREAM: - if (ctx->p_seqcode.cream && ctx->p_seqcode.cream[0]) - ret = strdup(ctx->p_seqcode.cream); - else - ret = strdup("no_seqcodes_with_CREAM"); + ret = strdup("no_seqcodes_with_CREAM"); break; default: edg_wll_SetError(ctx,EINVAL,"edg_wll_GetSequenceCode(): unknown sequence code type"); @@ -495,10 +492,6 @@ int edg_wll_SetSequenceCode(edg_wll_Context ctx, strncpy(ctx->p_seqcode.condor, seqcode_str, sizeof(ctx->p_seqcode.condor)); break; case EDG_WLL_SEQ_CREAM: - if (!seqcode_str) - memset(&ctx->p_seqcode.cream, 0, sizeof ctx->p_seqcode.cream); - else - strncpy(ctx->p_seqcode.cream, seqcode_str, sizeof(ctx->p_seqcode.cream)); break; /* XXX: not yet */ default: return edg_wll_SetError(ctx, EINVAL, -- 1.8.2.3