diff options
author | rsc <devnull@localhost> | 2004-03-26 01:59:35 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2004-03-26 01:59:35 +0000 |
commit | be22ae2d0729f68672e3202c91cfe13c9e74cccc (patch) | |
tree | b7bc9f9c1e8d3b221adc82f055f8be19ef25d0e6 /src/cmd/rc | |
parent | 4e3a2cc1f96f4479f951958f9ca1860f57a0771b (diff) | |
download | plan9port-be22ae2d0729f68672e3202c91cfe13c9e74cccc.tar.gz plan9port-be22ae2d0729f68672e3202c91cfe13c9e74cccc.tar.bz2 plan9port-be22ae2d0729f68672e3202c91cfe13c9e74cccc.zip |
SunOS can rot in hell.
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){ |