From: Michal Voců Date: Wed, 18 Jun 2008 19:39:27 +0000 (+0000) Subject: handle DG.PRIORITY correctly X-Git-Tag: merge_313_5_dst~4 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=4a23bc2a0d678f7aa8995d567d25c9d292ed9a86;p=jra1mw.git handle DG.PRIORITY correctly --- diff --git a/org.glite.lb.logger/src/server_msg.c b/org.glite.lb.logger/src/server_msg.c index 1eff856..5323ec6 100644 --- a/org.glite.lb.logger/src/server_msg.c +++ b/org.glite.lb.logger/src/server_msg.c @@ -16,7 +16,7 @@ create_msg(il_octet_string_t *ev, char **buffer, long *receipt, time_t *expires) char *p; int len; char *event = ev->data; - *receipt = 0; + *receipt = 0L; #if defined(INTERLOGD_EMS) /* find DG.LLLID */ @@ -41,18 +41,19 @@ create_msg(il_octet_string_t *ev, char **buffer, long *receipt, time_t *expires) int n; p += 12; /* skip the key and = */ - if((n = atoi(p)) == 0) { + n = atoi(p); + if((n & EDG_WLL_LOGFLAG_SYNC) == 0) { /* normal asynchronous message */ - *receipt = 0; + *receipt = 0L; } } else { /* could not find priority key */ - *receipt = 0; + *receipt = 0L; } } else { /* could not find local logger PID, confirmation can not be sent */ - *receipt = 0; + *receipt = 0L; } #endif