Commit e78bd71d authored by Pekka Pessi's avatar Pekka Pessi

http_header.h: removed warnings from HTTP_HEADER_INIT()

darcs-hash:20061206161347-65a35-db8db4d4a995ddc6e12c3d369a28b58f6be4e4bd.gz
parent d3162a8f
......@@ -58,8 +58,10 @@ SOFIA_BEGIN_DECLS
*/
/** Initialize a HTTP header structure. */
#define HTTP_HEADER_INIT(h, http_class, size) \
(memset((h), 0, (size)), ((msg_common_t *)(h))->h_class = (http_class), (h))
#define HTTP_HEADER_INIT(h, http_class, size) \
((void)memset((h), 0, (size)), \
(void)(((msg_common_t *)(h))->h_class = (http_class)), \
(h))
#define HTTP_METHOD_NAME(method, name) \
((method) == http_method_unknown ? (name) : http_method_name(method, name))
......
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