From f22cf9214674f057a8d0a6c104d81a864d7a4a44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A5vard=20Pettersson?= Date: Wed, 11 May 2016 09:31:02 +0200 Subject: [PATCH] Make error return codes negative. --- src/twc.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/twc.h b/src/twc.h index b5b96ee..aea6638 100644 --- a/src/twc.h +++ b/src/twc.h @@ -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