Skip to content
This repository has been archived by the owner on Jun 30, 2021. It is now read-only.

Commit

Permalink
Fix deprecated usage
Browse files Browse the repository at this point in the history
  • Loading branch information
romange committed Jul 27, 2017
1 parent 343c48b commit f4c42c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions evhtp.h
Original file line number Diff line number Diff line change
Expand Up @@ -622,7 +622,7 @@ EVHTP_EXPORT int evhtp_ssl_init(evhtp_t * htp, evhtp_ssl_cfg_t * ssl_cfg);
*
* @param htp
*/
EVHTP_EXPORT void evhtp_disable_100_continue(evhtp_t * htp);
EVHTP_EXPORT void evhtp_disable_100_continue(evhtp_t * htp)
DEPRECATED("evhtp_disable_100 will soon be deprecated, use htp->flags instead");

/**
Expand Down Expand Up @@ -781,7 +781,7 @@ EVHTP_EXPORT evhtp_callback_t * evhtp_get_cb(evhtp_t * htp, const char * needle)
*
* @return 0 on success, -1 on error (if hooks is NULL, it is allocated)
*/
EVHTP_EXPORT int evhtp_set_hook(evhtp_hooks_t ** hooks, evhtp_hook_type type, evhtp_hook cb, void * arg);
EVHTP_EXPORT int evhtp_set_hook(evhtp_hooks_t ** hooks, evhtp_hook_type type, evhtp_hook cb, void * arg)
DEPRECATED("use evhtp_[connection|request|callback]_set_hook() instead of set_hook directly");

EVHTP_EXPORT int evhtp_connection_set_hook(evhtp_connection_t * c, evhtp_hook_type type, evhtp_hook cb, void * arg);
Expand Down

0 comments on commit f4c42c7

Please sign in to comment.