From: Aleš Křenek Date: Fri, 23 Sep 2005 11:42:11 +0000 (+0000) Subject: pull-in the IL protocol compatibility from branch X-Git-Tag: merge_rc1_dst_2~5 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=daa20e5708f67744bb96f604c7064590cbb4c72e;p=jra1mw.git pull-in the IL protocol compatibility from branch (didn't get merged because of previsou errorneous commits) --- diff --git a/org.glite.lb.server/src/request.c b/org.glite.lb.server/src/request.c index 3ad753b..a3288a4 100644 --- a/org.glite.lb.server/src/request.c +++ b/org.glite.lb.server/src/request.c @@ -16,23 +16,15 @@ #define UNUSED_VAR #endif -/* XXX: is it OK to assume buf always contains the whole message? */ int handle_request(edg_wll_Context ctx,char *buf) { - char *event,*start = buf,y[1000]; - int ret,x; + char *event; + int ret; edg_wll_ResetError(ctx); -/* XXX: detect interlogger <= 1.1.1 */ - ret = sscanf(buf,"%d %999s\n%d",&x,y,&x); - if (ret == 3) { - start = strchr(buf,'\n'); - start++; - } - - ret = decode_il_msg(&event, start); + ret = decode_il_msg(&event, buf); if(ret < 0) { edg_wll_SetError(ctx,EDG_WLL_IL_PROTO,"reading event string"); return EDG_WLL_IL_PROTO;