diff options
Diffstat (limited to 'src/cmd/rc')
-rw-r--r-- | src/cmd/rc/plan9ish.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/cmd/rc/plan9ish.c b/src/cmd/rc/plan9ish.c index 6b32a227..30fa896a 100644 --- a/src/cmd/rc/plan9ish.c +++ b/src/cmd/rc/plan9ish.c @@ -216,10 +216,9 @@ void Updenv(void){ } */ int -cmpenv(a, b) -char **a, **b; +cmpenv(const void *a, const void *b) { - return strcmp(*a, *b); + return strcmp(*(char**)a, *(char**)b); } char **mkenv(){ register char **env, **ep, *p, *q; @@ -462,7 +461,7 @@ void Noerror(void){ interrupted=0; } int -Isatty(fd){ +Isatty(int fd){ return isatty(fd); } void Abort(void){ |