1
0
mirror of https://github.com/Interlisp/maiko.git synced 2026-02-02 06:41:21 +00:00

Remove prototypes for getenv. Use stdlib.h. (#122)

This also removes some casts to `char *` that were present but
not needed, since `getenv()` is defined to return `char *`.
This commit is contained in:
Bruce Mitchener
2020-12-23 22:44:16 +07:00
committed by GitHub
parent 530aa4ce6d
commit 985f2c43fe
8 changed files with 13 additions and 14 deletions

View File

@@ -12,6 +12,7 @@
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#ifndef DOS
@@ -383,8 +384,6 @@ void seteventmask(struct inputmask *eventmask)
}
#endif /* SUNDISPLAY */
char *getenv(); /* ---- external entry points --------*/
#define MIN_KEYTYPE 3
#define KB_AS3000J (7 + MIN_KEYTYPE)
#define KB_RS6000 (8 + MIN_KEYTYPE) /* TODO: Can we remove this? */