summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2013-03-12 07:12:51 -0700
committerYukihiro "Matz" Matsumoto <[email protected]>2013-03-12 07:12:51 -0700
commit9cfaa378104cd0063345b174661139a989b06559 (patch)
tree95aabe1cf59f425df1b19df27a21f4441478a1b8
parentf63cd331da6257f9b44778dabff60be55b0721fa (diff)
parentd25af7ccf9bb80315749097d2a6968a2569394bf (diff)
downloadmruby-9cfaa378104cd0063345b174661139a989b06559.tar.gz
mruby-9cfaa378104cd0063345b174661139a989b06559.zip
Merge pull request #991 from kano4/add_static
Add static declaration
-rw-r--r--test/driver.c3
-rw-r--r--tools/mirb/mirb.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/test/driver.c b/test/driver.c
index 5183145b4..eda82a7f2 100644
--- a/test/driver.c
+++ b/test/driver.c
@@ -17,7 +17,8 @@ void
mrb_init_mrbtest(mrb_state *);
/* Print a short remark for the user */
-void print_hint(void)
+static void
+print_hint(void)
{
printf("mrbtest - Embeddable Ruby Test\n");
printf("\nThis is a very early version, please test and report errors.\n");
diff --git a/tools/mirb/mirb.c b/tools/mirb/mirb.c
index e20de629d..c20c788e4 100644
--- a/tools/mirb/mirb.c
+++ b/tools/mirb/mirb.c
@@ -132,7 +132,8 @@ is_code_block_open(struct mrb_parser_state *parser)
}
/* Print a short remark for the user */
-void print_hint(void)
+static void
+print_hint(void)
{
printf("mirb - Embeddable Interactive Ruby Shell\n");
printf("\nThis is a very early version, please test and report errors.\n");