From: mlarkin Date: Sat, 17 Aug 2024 20:50:06 +0000 (+0000) Subject: Use 'int ch' instead of 'char ch' in one place for getopt. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=22b23f348df62a43ac634724b194f663179fa97a;p=openbsd Use 'int ch' instead of 'char ch' in one place for getopt. Forgot one change during an earlier commit; use 'int ch' to make builds complete without warning on arm64. ok dv --- diff --git a/usr.sbin/vmctl/main.c b/usr.sbin/vmctl/main.c index 395bc39efce..0583ef953c8 100644 --- a/usr.sbin/vmctl/main.c +++ b/usr.sbin/vmctl/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.78 2024/05/18 06:45:00 jsg Exp $ */ +/* $OpenBSD: main.c,v 1.79 2024/08/17 20:50:06 mlarkin Exp $ */ /* * Copyright (c) 2015 Reyk Floeter @@ -743,7 +743,7 @@ ctl_convert(const char *srcfile, const char *dstfile, int dsttype, size_t dstsiz int ctl_status(struct parse_result *res, int argc, char *argv[]) { - char ch; + int ch; while ((ch = getopt(argc, argv, "r")) != -1) { switch (ch) {