presence: wrap error macro in do {} while(0), safety checks
authorDaniel-Constantin Mierla <miconda@gmail.com>
Thu, 13 Jul 2017 14:50:05 +0000 (16:50 +0200)
committerDaniel-Constantin Mierla <miconda@gmail.com>
Thu, 13 Jul 2017 14:50:05 +0000 (16:50 +0200)
commit9d01c307f23675589d95d8d00c9fd289ac30372b
tree1088a790af6b417ea03fd9777d5b2b4617b3e2bb
parentb4db01f09ca646ef1a6473a8c66ccf7120537b53
presence: wrap error macro in do {} while(0), safety checks

- free ws_list pointer when sphere is enabled
- copy macros not ended with ; in definition -- done it when using
src/modules/presence/event_list.c
src/modules/presence/hash.c
src/modules/presence/hash.h
src/modules/presence/presence.c
src/modules/presence/presentity.c
src/modules/presence/subscribe.c