comparison libfreeDiameter/messages.c @ 100:05ea77b86f53

Fix invalid flag
author Sebastien Decugis <sdecugis@nict.go.jp>
date Tue, 08 Dec 2009 11:23:15 +0900
parents 2c9444152e4b
children 6a294d977878
comparison
equal deleted inserted replaced
99:bc07ebb58e98 100:05ea77b86f53
1002 { 1002 {
1003 TRACE_ENTRY("%p %p %p", msg, anscb, data); 1003 TRACE_ENTRY("%p %p %p", msg, anscb, data);
1004 1004
1005 /* Check the parameters */ 1005 /* Check the parameters */
1006 CHECK_PARAMS( CHECK_MSG(msg) && anscb ); 1006 CHECK_PARAMS( CHECK_MSG(msg) && anscb );
1007 CHECK_PARAMS( ! (msg->msg_public.msg_flags & CMD_FLAG_REQUEST) ); 1007 CHECK_PARAMS( msg->msg_public.msg_flags & CMD_FLAG_REQUEST ); /* we associate with requests only */
1008 CHECK_PARAMS( msg->msg_cb.fct == NULL ); /* No cb is already registered */ 1008 CHECK_PARAMS( msg->msg_cb.fct == NULL ); /* No cb is already registered */
1009 1009
1010 /* Associate callback and data with the message, if any */ 1010 /* Associate callback and data with the message, if any */
1011 msg->msg_cb.fct = anscb; 1011 msg->msg_cb.fct = anscb;
1012 msg->msg_cb.data = data; 1012 msg->msg_cb.data = data;
"Welcome to our mercurial repository"