From 23a29f0851221f5bc9adfaddf2c94df6ad4b2f74 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Milo=C5=A1=20Mula=C4=8D?= Date: Fri, 11 Sep 2009 13:55:04 +0000 Subject: [PATCH] invalid string assignments --- org.glite.lb.state-machine/src/process_event.c | 1 + org.glite.lb.state-machine/src/process_event_cream.c | 10 +++++----- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/org.glite.lb.state-machine/src/process_event.c b/org.glite.lb.state-machine/src/process_event.c index deb0449..00ac728 100644 --- a/org.glite.lb.state-machine/src/process_event.c +++ b/org.glite.lb.state-machine/src/process_event.c @@ -28,6 +28,7 @@ static int processEvent_glite(intJobStat *js, edg_wll_Event *e, int ev_seq, int strict, char **errstring); int processEvent_PBS(intJobStat *js, edg_wll_Event *e, int ev_seq, int strict, char **errstring); int processEvent_Condor(intJobStat *js, edg_wll_Event *e, int ev_seq, int strict, char **errstring); +int processEvent_Cream(intJobStat *js, edg_wll_Event *e, int ev_seq, int strict, char **errstring); int add_stringlist(char ***lptr, const char *new_item); diff --git a/org.glite.lb.state-machine/src/process_event_cream.c b/org.glite.lb.state-machine/src/process_event_cream.c index 631522d..0e55371 100644 --- a/org.glite.lb.state-machine/src/process_event_cream.c +++ b/org.glite.lb.state-machine/src/process_event_cream.c @@ -100,7 +100,7 @@ int processEvent_Cream(intJobStat *js, edg_wll_Event *e, int ev_seq, int strict, } if (USABLE_DATA(res)) { - js->pub.cream_reason = e->CREAMCall.reason; + rep(js->pub.cream_reason, e->CREAMCall.reason); } break; @@ -113,7 +113,7 @@ int processEvent_Cream(intJobStat *js, edg_wll_Event *e, int ev_seq, int strict, } } if (USABLE_DATA(res)) { - js->pub.cream_node = e->CREAMRunning.node; + rep(js->pub.cream_node, e->CREAMRunning.node); } break; case EDG_WLL_EVENT_CREAMREALLYRUNNING: @@ -138,7 +138,7 @@ int processEvent_Cream(intJobStat *js, edg_wll_Event *e, int ev_seq, int strict, if (USABLE_DATA(res)) { js->pub.cream_done_code = e->CREAMDone.status_code; js->pub.cream_exit_code = e->CREAMDone.exit_code; - js->pub.cream_reason = e->CREAMDone.reason; + rep(js->pub.cream_reason, e->CREAMDone.reason); } break; case EDG_WLL_EVENT_CREAMCANCEL: @@ -149,7 +149,7 @@ int processEvent_Cream(intJobStat *js, edg_wll_Event *e, int ev_seq, int strict, } } if (USABLE_DATA(res)) { - js->pub.cream_reason = e->CREAMCancel.reason; + rep(js->pub.cream_reason, e->CREAMCancel.reason); } break; case EDG_WLL_EVENT_CREAMABORT: @@ -158,7 +158,7 @@ int processEvent_Cream(intJobStat *js, edg_wll_Event *e, int ev_seq, int strict, js->pub.cream_state = EDG_WLL_STAT_ABORTED; } if (USABLE_DATA(res)) { - js->pub.cream_reason = e->CREAMAbort.reason; + rep(js->pub.cream_reason, e->CREAMAbort.reason); } break; -- 1.8.2.3