Commit de4ef579 authored by Pekka Pessi's avatar Pekka Pessi

SIP_HEADER_INIT(): removed gcc warning about comma expression.

darcs-hash:20061006153057-65a35-8875206d39cccd92215ebab7cea6c5ebbf60808b.gz
parent 4258f185
......@@ -67,8 +67,10 @@ SOFIAPUBFUN msg_mclass_t *sip_default_mclass(void);
#define SIP_HDR_INIT(name) {{{ 0, 0, sip_##name##_class }}}
/** Initialize a SIP header structure. @HIDE */
#define SIP_HEADER_INIT(h, sip_class, size) \
(memset((h), 0, (size)), ((sip_common_t *)(h))->h_class = (sip_class), (h))
#define SIP_HEADER_INIT(h, sip_class, size) \
((void)memset((h), 0, (size)), \
(void)(((sip_common_t *)(h))->h_class = (sip_class)), \
(h))
/** Serialize headers into the fragment chain. */
SOFIAPUBFUN int sip_serialize(msg_t *msg, sip_t *sip);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment