numam-dpdk/examples/vhost_crypto
Ibtisam Tariq 270054edc9 examples/vhost_crypto: enhance getopt_long usage
Instead of using getopt_long return value, strcmp was used to
compare the input parameters with the struct option array. This
patch get rid of all those strcmp by directly binding each longopt
with an int enum. This is to improve readability and consistency in
all examples.

Bugzilla ID: 238

Reported-by: David Marchand <david.marchand@redhat.com>
Signed-off-by: Ibtisam Tariq <ibtisam.tariq@emumba.com>
Acked-by: Fan Zhang <roy.fan.zhang@intel.com>
Reviewed-by: David Marchand <david.marchand@redhat.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
2021-03-23 13:00:29 +01:00
..
main.c examples/vhost_crypto: enhance getopt_long usage 2021-03-23 13:00:29 +01:00
Makefile examples: warn about broken pkg-config 2021-01-30 01:27:28 +01:00
meson.build examples: stop processing meson file if build impossible 2020-11-12 19:33:36 +01:00