1
0
mirror of https://github.com/Interlisp/maiko.git synced 2026-01-29 04:51:28 +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

@@ -20,6 +20,7 @@
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <unistd.h>
@@ -220,8 +221,6 @@ LispPTR unix_username(LispPTR *args) {
* The only usage seems to be checking "ARCH" == "dos" and for the existance
* of *any* result from the call, which indicates it's an emulated system.
*/
char *getenv(const char *);
LispPTR unix_getparm(LispPTR *args) {
char envname[20], result[128], *envvalue;
if (lisp_string_to_c_string(args[0], envname, sizeof envname)) return NIL;