magic protoco word moved to common
authorAleš Křenek <ljocha@ics.muni.cz>
Tue, 9 Aug 2005 19:29:09 +0000 (19:29 +0000)
committerAleš Křenek <ljocha@ics.muni.cz>
Tue, 9 Aug 2005 19:29:09 +0000 (19:29 +0000)
org.glite.lb.server/src/request.c

index 5546921..a3288a4 100644 (file)
 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: discard legacy header */
-  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;