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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user