diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2022-01-03 18:41:48 +0000 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2022-01-03 18:41:48 +0000 |
commit | 189731aad01e09db1807c78af421c615ed3a3242 (patch) | |
tree | 4cec623654b4e4e9da03bb00f36ea49755c8ca98 /sys/src/cmd/rc/getflags.c | |
parent | c51a5cfa06dd982da839c4cfcba1610259d27e38 (diff) |
rc: make it portable (for UNIX)
Fixup remaining Plan9 dependencies (chartorune()).
Add Makefile for UNIX-like systems (tested with Linux and APE).
Make error printing consistent, use Errstr() explicitely.
Get rid of NSTATUS buffer limit, just malloc it.
Diffstat (limited to 'sys/src/cmd/rc/getflags.c')
-rw-r--r-- | sys/src/cmd/rc/getflags.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/src/cmd/rc/getflags.c b/sys/src/cmd/rc/getflags.c index 3c2f9adeb..7a46c435c 100644 --- a/sys/src/cmd/rc/getflags.c +++ b/sys/src/cmd/rc/getflags.c @@ -205,7 +205,8 @@ usage(char *tail) errs(tail); } errs("\n"); - Exit("bad flags"); + setstatus("bad flags"); + Exit(); } static void |