eal: rework long options parsing
authorDavid Marchand <david.marchand@6wind.com>
Mon, 22 Sep 2014 08:38:00 +0000 (10:38 +0200)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 23 Sep 2014 13:33:00 +0000 (15:33 +0200)
Identify all options through the getopt_long return value.
This way, we only need a big switch/case.

Indentation is broken to ease commit review (fixed in next commit).

Suggested-by: Neil Horman <nhorman@tuxdriver.com>
Signed-off-by: David Marchand <david.marchand@6wind.com>
Acked-by: Neil Horman <nhorman@tuxdriver.com>

No differences found