diff options
author | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2020-11-03 13:58:46 +0000 |
---|---|---|
committer | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2020-11-03 13:58:46 +0000 |
commit | 1620f3b2d40d82edc0f0b8b9af89942fbf2a44ff (patch) | |
tree | 391d7a946a4f5026a2360e0839e337271340275a /regress/sys/uvm | |
parent | e132abe32dc374bd32f802399fc8d087dca97045 (diff) |
On arm64 char is unsigned, use int in getopt() loop.
Diffstat (limited to 'regress/sys/uvm')
-rw-r--r-- | regress/sys/uvm/vnode/vnode.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/regress/sys/uvm/vnode/vnode.c b/regress/sys/uvm/vnode/vnode.c index 11c67e28f6a..51140fb31b3 100644 --- a/regress/sys/uvm/vnode/vnode.c +++ b/regress/sys/uvm/vnode/vnode.c @@ -1,3 +1,5 @@ +/* $OpenBSD: vnode.c,v 1.2 2020/11/03 13:58:45 bluhm Exp $ */ + /* * Copyright (c) 2020 Anton Lindqvist <anton@openbsd.org> * @@ -52,7 +54,7 @@ main(int argc, char *argv[]) int killpip[2]; int status; int iterations = 100; - char ch; + int ch; while ((ch = getopt(argc, argv, "I")) != -1) { switch (ch) { @@ -95,7 +97,7 @@ main(int argc, char *argv[]) } /* Signal shutdown to writer() process. */ - write(killpip[1], &ch, 1); + write(killpip[1], "X", 1); close(killpip[1]); if (waitpid(pid, &status, 0) == -1) |