Make error return codes negative.

This commit is contained in:
Håvard Pettersson 2016-05-11 09:31:02 +02:00
parent f3d2b9b39f
commit f22cf92146

View File

@ -25,11 +25,11 @@ extern struct t_weechat_plugin *weechat_plugin;
/// Return codes used throughout Tox-WeeChat. /// Return codes used throughout Tox-WeeChat.
enum t_twc_rc enum t_twc_rc
{ {
TWC_RC_OK, TWC_RC_OK = 0,
/// Generic error return code. /// Generic error return code.
TWC_RC_ERROR, TWC_RC_ERROR = -1,
/// Malloc error return code. /// Malloc error return code.
TWC_RC_ERROR_MALLOC, TWC_RC_ERROR_MALLOC = -2,
}; };
#endif // TOX_WEECHAT_H #endif // TOX_WEECHAT_H