Date: Wed, 13 Jul 2016 22:53:30 +0000 (UTC) From: Andrew Turner <andrew@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r302788 - head/usr.sbin/acpi/acpidump Message-ID: <201607132253.u6DMrUh5094064@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: andrew Date: Wed Jul 13 22:53:30 2016 New Revision: 302788 URL: https://svnweb.freebsd.org/changeset/base/302788 Log: Fix the type used to hold the value returned from getopt. On arm64 char is unsigned so will never be -1. Obtained from: ABT Systems Ltd MFC after: 1 week Sponsored by: The FreeBSD Foundation Modified: head/usr.sbin/acpi/acpidump/acpidump.c Modified: head/usr.sbin/acpi/acpidump/acpidump.c ============================================================================== --- head/usr.sbin/acpi/acpidump/acpidump.c Wed Jul 13 21:27:10 2016 (r302787) +++ head/usr.sbin/acpi/acpidump/acpidump.c Wed Jul 13 22:53:30 2016 (r302788) @@ -55,7 +55,8 @@ int main(int argc, char *argv[]) { ACPI_TABLE_HEADER *rsdt, *sdt; - char c, *progname; + int c; + char *progname; char *dsdt_input_file, *dsdt_output_file; dsdt_input_file = dsdt_output_file = NULL;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201607132253.u6DMrUh5094064>