summaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2017-10-03 21:16:11 +0200
committerSébastien Helleu <flashcode@flashtux.org>2017-10-03 21:16:11 +0200
commit255e46eaef31d87e7df3a49e3b58745ff8dd251a (patch)
tree8f34e99075814319adb404b1b347564fb4c6819d /src/plugins
parent682979bb90aa99e35b129ad0ca914a3ef26d7345 (diff)
downloadweechat-255e46eaef31d87e7df3a49e3b58745ff8dd251a.zip
guile: return integer (0/1) instead of boolean in API functions
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/guile/weechat-guile-api.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/guile/weechat-guile-api.c b/src/plugins/guile/weechat-guile-api.c
index 77c2119fa..90855de6e 100644
--- a/src/plugins/guile/weechat-guile-api.c
+++ b/src/plugins/guile/weechat-guile-api.c
@@ -68,10 +68,10 @@
}
#define API_RETURN_OK \
API_FREE_STRINGS; \
- return SCM_BOOL_T
+ return scm_from_int (1)
#define API_RETURN_ERROR \
API_FREE_STRINGS \
- return SCM_BOOL_F
+ return scm_from_int (0)
#define API_RETURN_EMPTY \
API_FREE_STRINGS; \
return scm_from_locale_string("")