summaryrefslogtreecommitdiff
path: root/version.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-11-28 07:34:18 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-11-28 07:34:18 (GMT)
commit6de07f1fbe1e2819ac625c6b64069f54033b0164 (patch)
tree557fb9763c4dd51313c1e592e841a542427d3e4e /version.c
parentc26bc976bd3c02f9af7077919f0a2e7dd947e4d4 (diff)
version.c: EXIT_SUCCESS
* version.c (ruby_show_copyright): use EXIT_SUCCESS instead of magic number 0. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43892 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'version.c')
-rw-r--r--version.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/version.c b/version.c
index 13e56c0..573cf61 100644
--- a/version.c
+++ b/version.c
@@ -13,6 +13,10 @@
#include "version.h"
#include <stdio.h>
+#ifndef EXIT_SUCCESS
+#define EXIT_SUCCESS 0
+#endif
+
#define PRINT(type) puts(ruby_##type)
#define MKSTR(type) rb_obj_freeze(rb_usascii_str_new(ruby_##type, sizeof(ruby_##type)-1))
@@ -84,5 +88,5 @@ void
ruby_show_copyright(void)
{
PRINT(copyright);
- exit(0);
+ exit(EXIT_SUCCESS);
}