From 109af13829b745bd7ba3ac7e7f39a7288fbf12b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Sonnenberger?= Date: Tue, 6 Oct 2009 17:41:49 +0000 Subject: [PATCH] Fix portability issues Signed-off-by: Masanori Ogino --- sj3/nmttyslot.c | 7 +++---- sj3dic/codecnv.c | 2 +- sj3dic/dictdisp.c | 2 +- sj3dic/sjrc.c | 5 ++--- sj3rkcv/sj3_rkcv.c | 2 +- 5 files changed, 8 insertions(+), 10 deletions(-) diff --git a/sj3/nmttyslot.c b/sj3/nmttyslot.c index 5aaa172..7429962 100644 --- a/sj3/nmttyslot.c +++ b/sj3/nmttyslot.c @@ -40,14 +40,13 @@ +#include +#include - -char *ttyname(); -char *getttys(); -char *strrchr(); +static char *getttys(); static char *ttys = "/etc/ttys"; #define NULL 0 diff --git a/sj3dic/codecnv.c b/sj3dic/codecnv.c index a7a0f04..968e980 100644 --- a/sj3dic/codecnv.c +++ b/sj3dic/codecnv.c @@ -35,7 +35,7 @@ - +#include #include #include #include diff --git a/sj3dic/dictdisp.c b/sj3dic/dictdisp.c index 5d5455d..cc97b70 100644 --- a/sj3dic/dictdisp.c +++ b/sj3dic/dictdisp.c @@ -35,7 +35,7 @@ - +#include #include #include diff --git a/sj3dic/sjrc.c b/sj3dic/sjrc.c index 438cfb0..492890c 100644 --- a/sj3dic/sjrc.c +++ b/sj3dic/sjrc.c @@ -36,7 +36,7 @@ - +#include #include #include #include @@ -108,9 +108,8 @@ sjset_code() getsjrc () { - FILE *fd, *fopen(); + FILE *fd; register char *p; - char *getenv(); sjset_code(); RCfile[0] = '\0'; diff --git a/sj3rkcv/sj3_rkcv.c b/sj3rkcv/sj3_rkcv.c index b5a8374..8459032 100644 --- a/sj3rkcv/sj3_rkcv.c +++ b/sj3rkcv/sj3_rkcv.c @@ -33,7 +33,7 @@ * $SonyDate: 1995/02/10 06:02:25 $ */ - +#include #include "wchar16.h" #include "sj.h"