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
1 changed files with 3 additions and 3 deletions

View File

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