Mercurial > hg > freeDiameter
diff libfdcore/messages.c @ 1120:c473581adff2
Cleanup some traces
author | Sebastien Decugis <sdecugis@freediameter.net> |
---|---|
date | Tue, 14 May 2013 12:32:28 +0800 |
parents | eb4ce68b6e5c |
children | e5010975da35 |
line wrap: on
line diff
--- a/libfdcore/messages.c Tue May 14 11:04:20 2013 +0800 +++ b/libfdcore/messages.c Tue May 14 12:32:28 2013 +0800 @@ -317,7 +317,6 @@ { struct msg_hdr *hdr; DiamId_t diamid; - size_t diamidlen; /* Save the callback in the message, with the timeout */ CHECK_FCT( fd_msg_anscb_associate( *pmsg, anscb, data, expirecb, timeout ) ); @@ -325,7 +324,7 @@ /* If this is a new request, call the HOOK_MESSAGE_LOCAL hook */ if ( (fd_msg_hdr(*pmsg, &hdr) == 0) && (hdr->msg_flags & CMD_FLAG_REQUEST) - && (fd_msg_source_get(*pmsg, &diamid, &diamidlen) == 0) + && (fd_msg_source_get(*pmsg, &diamid, NULL) == 0) && (diamid == NULL)) { fd_hook_call(HOOK_MESSAGE_LOCAL, *pmsg, NULL, NULL, fd_msg_pmdl_get(*pmsg)); }