comparison libfdproto/messages.c @ 893:8187364e39ea

Fix answers sending
author Sebastien Decugis <sdecugis@freediameter.net>
date Fri, 23 Nov 2012 21:22:54 +0100
parents b2e8f1a3ef76
children 43fb27a9037f
comparison
equal deleted inserted replaced
892:b2e8f1a3ef76 893:8187364e39ea
973 { 973 {
974 TRACE_ENTRY("%p %p %p", msg, anscb, data); 974 TRACE_ENTRY("%p %p %p", msg, anscb, data);
975 975
976 /* Check the parameters */ 976 /* Check the parameters */
977 CHECK_PARAMS( CHECK_MSG(msg) ); 977 CHECK_PARAMS( CHECK_MSG(msg) );
978 CHECK_PARAMS( msg->msg_public.msg_flags & CMD_FLAG_REQUEST ); /* we associate with requests only */ 978
979 if (! (msg->msg_public.msg_flags & CMD_FLAG_REQUEST ))
980 return 0; /* we associate with requests only */
981
979 CHECK_PARAMS( (anscb == NULL) || (msg->msg_cb.fct == NULL) ); /* We are not overwritting a cb */ 982 CHECK_PARAMS( (anscb == NULL) || (msg->msg_cb.fct == NULL) ); /* We are not overwritting a cb */
980 983
981 /* Associate callback and data with the message, if any */ 984 /* Associate callback and data with the message, if any */
982 msg->msg_cb.fct = anscb; 985 msg->msg_cb.fct = anscb;
983 msg->msg_cb.data = data; 986 msg->msg_cb.data = data;
"Welcome to our mercurial repository"