summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/chicken.c18
-rw-r--r--mbbsd/dice.c2
-rw-r--r--mbbsd/gomo.c4
-rw-r--r--mbbsd/stuff.c17
-rw-r--r--mbbsd/talk.c2
5 files changed, 22 insertions, 21 deletions
diff --git a/mbbsd/chicken.c b/mbbsd/chicken.c
index c95bc423..17d6dad6 100644
--- a/mbbsd/chicken.c
+++ b/mbbsd/chicken.c
@@ -157,24 +157,6 @@ new_chicken()
return 1;
}
-int
-show_file(char *filename, int y, int lines, int mode)
-{
- FILE *fp;
- char buf[256];
-
- if (y >= 0)
- move(y, 0);
- clrtoline(lines + y);
- if ((fp = fopen(filename, "r"))) {
- while (fgets(buf, sizeof(buf), fp) && lines--)
- outs(Ptt_prints(buf, mode));
- fclose(fp);
- } else
- return 0;
- return 1;
-}
-
static void
show_chicken_stat(chicken_t * thechicken)
{
diff --git a/mbbsd/dice.c b/mbbsd/dice.c
index b6336d93..d6fc0c55 100644
--- a/mbbsd/dice.c
+++ b/mbbsd/dice.c
@@ -80,7 +80,7 @@ IsNum(char *a, int n)
return 1;
}
-int
+static int
IsSNum(char *a)
{
int i;
diff --git a/mbbsd/gomo.c b/mbbsd/gomo.c
index 82e9af8f..31583d1d 100644
--- a/mbbsd/gomo.c
+++ b/mbbsd/gomo.c
@@ -64,6 +64,7 @@ chkwin(int style, int limit)
return 0;
}
+static int getstyle(int x, int y, int color, int limit);
/* x,y: 0..BRDSIZ-1 ; color: CBLACK,CWHITE ; limit:1,0 ; dx,dy: 0,1 */
static int
dirchk(int x, int y, int color, int limit, int dx, int dy)
@@ -116,7 +117,7 @@ dirchk(int x, int y, int color, int limit, int dx, int dy)
/* 四三=7 活四=6 斷四=5 死四=4 活三=3 斷三=2 保留=1 無效=0 */
/* x,y: 0..BRDSIZ-1 ; color: CBLACK,CWHITE ; limit: 1,0 */
-int
+static int
getstyle(int x, int y, int color, int limit)
{
int i, j, dir[4], style;
@@ -146,6 +147,7 @@ getstyle(int x, int y, int color, int limit)
}
return style;
}
+
static void
HO_init(Horder_t *pool)
{
diff --git a/mbbsd/stuff.c b/mbbsd/stuff.c
index fdc5cdc2..1381d61f 100644
--- a/mbbsd/stuff.c
+++ b/mbbsd/stuff.c
@@ -489,6 +489,23 @@ vmsg(const char *fmt,...)
return vmsg_lines(b_lines, msg);
}
+int
+show_file(char *filename, int y, int lines, int mode)
+{
+ FILE *fp;
+ char buf[256];
+
+ if (y >= 0)
+ move(y, 0);
+ clrtoline(lines + y);
+ if ((fp = fopen(filename, "r"))) {
+ while (fgets(buf, sizeof(buf), fp) && lines--)
+ outs(Ptt_prints(buf, mode));
+ fclose(fp);
+ } else
+ return 0;
+ return 1;
+}
void
bell()
diff --git a/mbbsd/talk.c b/mbbsd/talk.c
index 8778ef21..33e46ad4 100644
--- a/mbbsd/talk.c
+++ b/mbbsd/talk.c
@@ -436,7 +436,7 @@ my_query(char *uident)
static char t_last_write[80];
-void
+static void
water_scr(water_t * tw, int which, char type)
{
if (type == 1) {