Import patches from pkgsrc

* Adjust paths to modern conventions.
* Avoid opening /dev/console.
* Consistently provide lowercase and MixedCase options.
* Don't abuse an int as a pointer (optarg).
* Fix compilation errors on NetBSD and DragonFly BSD.
* Fix documentation.
* Import headers and remove redundant declarations.

Signed-off-by: Masanori Ogino <mogino@acm.org>
This commit is contained in:
Masanori Ogino 2023-11-27 10:29:45 +09:00
commit 381c676eda
26 changed files with 143 additions and 98 deletions

View file

@ -53,8 +53,6 @@
#define SJIS_PROTO 1
#define EUC_PROTO 2
extern int errno;
extern Global *work_base;
extern STDY *stdy_base;
extern int serv_errno;
@ -82,7 +80,6 @@ static Client *cur_cli;
static Uchar defaultchar[2] = {(Uchar)0x81, (Uchar)0x40};
static int defuse=0, defuse2=0;
char *malloc();
DictFile *opendict();
int closedict();
StdyFile *openstdy();