diff options
author | Russ Cox <rsc@swtch.com> | 2018-01-03 09:46:15 -0500 |
---|---|---|
committer | Russ Cox <rsc@swtch.com> | 2018-01-03 09:49:11 -0500 |
commit | 60f06594cc4d8c17a5148026132b890856d2fe1f (patch) | |
tree | 43521eff139aca9b080ede34226a7b684cec110c /src/cmd/draw | |
parent | 2023d484f2aa079651e6ff84a955bb1e9b7cbdc9 (diff) | |
download | plan9port-60f06594cc4d8c17a5148026132b890856d2fe1f.tar.gz plan9port-60f06594cc4d8c17a5148026132b890856d2fe1f.tar.bz2 plan9port-60f06594cc4d8c17a5148026132b890856d2fe1f.zip |
gview: fix int vs ulong confusion causing silent exit 1 at startup
Diffstat (limited to 'src/cmd/draw')
-rw-r--r-- | src/cmd/draw/gview.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/cmd/draw/gview.c b/src/cmd/draw/gview.c index 68b6ad43..0794f100 100644 --- a/src/cmd/draw/gview.c +++ b/src/cmd/draw/gview.c @@ -209,16 +209,16 @@ int clrim_id(Image* clr) int i; for (i=0; clrtab[i].im!=clr; i++) if (clrtab[i].c==DNofill) - exits("bad image color"); + sysfatal("bad image color"); return i; } -int clr_id(int clr) +int clr_id(ulong clr) { int i; for (i=0; clrtab[i].c!=clr; i++) if (clrtab[i].c==DNofill) - exits("bad color"); + sysfatal("bad color %#x", clr); return i; } @@ -1995,7 +1995,7 @@ void main(int argc, char *argv[]) } ARGEND if(initdraw(0, 0, "gview") < 0) - exits("initdraw"); + sysfatal("initdraw"); einit(Emouse|Ekeyboard); e = doinput(*argv ? *argv : "-"); |