From e64aaeac2a3778e27db34486e61180a7ace216b8 Mon Sep 17 00:00:00 2001 From: Alexander Kabaev Date: Fri, 7 Apr 2017 22:58:31 +0000 Subject: [PATCH] Use int to receive the return value of getopt function. getopt returns int and not char, so assigning the value to char is not ideal, especially on platforms with unsigned chars. --- usr.sbin/acpi/acpiconf/acpiconf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.sbin/acpi/acpiconf/acpiconf.c b/usr.sbin/acpi/acpiconf/acpiconf.c index 1fab4b68e11e..574d40157782 100644 --- a/usr.sbin/acpi/acpiconf/acpiconf.c +++ b/usr.sbin/acpi/acpiconf/acpiconf.c @@ -203,8 +203,8 @@ usage(const char* prog) int main(int argc, char *argv[]) { - char c, *prog; - int sleep_type; + char *prog; + int c, sleep_type; prog = argv[0]; if (argc < 2)