From 3b3060f14b5bed8468c77803fcab625e856f0a71 Mon Sep 17 00:00:00 2001 From: Daniel Verkamp Date: Mon, 23 Jan 2017 17:31:48 -0700 Subject: [PATCH] ioat/kperf: -h option has no argument Fix the getopt string for the -h switch so that it does not expect an argument. Change-Id: I8ea86018d6ee2c61ad698eead9718b2babfe6791 Signed-off-by: Daniel Verkamp --- examples/ioat/kperf/ioat_kperf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/ioat/kperf/ioat_kperf.c b/examples/ioat/kperf/ioat_kperf.c index 469091053..1586f1119 100644 --- a/examples/ioat/kperf/ioat_kperf.c +++ b/examples/ioat/kperf/ioat_kperf.c @@ -222,7 +222,7 @@ int main(int argc, char *argv[]) } ring_size = 1UL << order; - while ((op = getopt(argc, argv, "h:n:q:s:t:")) != -1) { + while ((op = getopt(argc, argv, "hn:q:s:t:")) != -1) { switch (op) { case 'n': threads = atoi(optarg);