Mercurial > hg > freeDiameter
comparison libfdcore/p_out.c @ 1084:6b7966ea27fb
Fix a few compilation issues
author | Sebastien Decugis <sdecugis@freediameter.net> |
---|---|
date | Fri, 03 May 2013 15:33:57 +0800 |
parents | 74bba7975864 |
children | d8591b1c56cd |
comparison
equal
deleted
inserted
replaced
1083:d0017c5dde61 | 1084:6b7966ea27fb |
---|---|
42 int msg_is_a_req; | 42 int msg_is_a_req; |
43 uint8_t * buf; | 43 uint8_t * buf; |
44 size_t sz; | 44 size_t sz; |
45 int ret; | 45 int ret; |
46 uint32_t bkp_hbh = 0; | 46 uint32_t bkp_hbh = 0; |
47 struct msg * cpy_for_logs_only; | |
48 | 47 |
49 TRACE_ENTRY("%p %x %p %p %p", msg, flags, cnx, hbh, srl); | 48 TRACE_ENTRY("%p %x %p %p %p", msg, flags, cnx, hbh, srl); |
50 | 49 |
51 /* Retrieve the message header */ | 50 /* Retrieve the message header */ |
52 CHECK_FCT( fd_msg_hdr(*msg, &hdr) ); | 51 CHECK_FCT( fd_msg_hdr(*msg, &hdr) ); |
62 | 61 |
63 /* Create the message buffer */ | 62 /* Create the message buffer */ |
64 CHECK_FCT(fd_msg_bufferize( *msg, &buf, &sz )); | 63 CHECK_FCT(fd_msg_bufferize( *msg, &buf, &sz )); |
65 pthread_cleanup_push( free, buf ); | 64 pthread_cleanup_push( free, buf ); |
66 | 65 |
67 cpy_for_logs_only = *msg; | 66 // cpy_for_logs_only = *msg; |
68 | 67 |
69 /* Save a request before sending so that there is no race condition with the answer */ | 68 /* Save a request before sending so that there is no race condition with the answer */ |
70 if (msg_is_a_req) { | 69 if (msg_is_a_req) { |
71 CHECK_FCT_DO( ret = fd_p_sr_store(srl, msg, &hdr->msg_hbhid, bkp_hbh), goto out ); | 70 CHECK_FCT_DO( ret = fd_p_sr_store(srl, msg, &hdr->msg_hbhid, bkp_hbh), goto out ); |
72 } | 71 } |