summaryrefslogtreecommitdiff
path: root/source/common/getopt.c
diff options
context:
space:
mode:
authorJung-uk Kim <jkim@FreeBSD.org>2015-11-25 21:04:42 +0000
committerJung-uk Kim <jkim@FreeBSD.org>2015-11-25 21:04:42 +0000
commitb9098066cd6284319bca922f13e59517f774a103 (patch)
treef01fd6c9053cb01ed84c00cb42ee789adafceaf5 /source/common/getopt.c
parent1e24cf365bc9c8df179b145c90d52852724e54ee (diff)
Notes
Diffstat (limited to 'source/common/getopt.c')
-rw-r--r--source/common/getopt.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/source/common/getopt.c b/source/common/getopt.c
index df069728533f..e5b72174c031 100644
--- a/source/common/getopt.c
+++ b/source/common/getopt.c
@@ -90,6 +90,7 @@ AcpiGetoptArgument (
int argc,
char **argv)
{
+
AcpiGbl_Optind--;
CurrentCharPtr++;
@@ -182,7 +183,8 @@ AcpiGetopt(
}
else if (++AcpiGbl_Optind >= argc)
{
- ACPI_OPTION_ERROR ("Option requires an argument: -", CurrentChar);
+ ACPI_OPTION_ERROR (
+ "Option requires an argument: -", CurrentChar);
CurrentCharPtr = 1;
return ('?');
@@ -243,7 +245,9 @@ AcpiGetopt(
}
else
{
- ACPI_OPTION_ERROR ("Option requires a single-character suboption: -", CurrentChar);
+ ACPI_OPTION_ERROR (
+ "Option requires a single-character suboption: -",
+ CurrentChar);
CurrentCharPtr = 1;
return ('?');