Skip to content

Commit

Permalink
examples/vhost_crypto: remove unused short option
Browse files Browse the repository at this point in the history
[ upstream commit dd0946f ]

Short option "s" was passed to getopt_long function, while there was
no condition on this option.

Fixes: f518821 ("examples/vhost_crypto: add sample application")

Signed-off-by: Ibtisam Tariq <ibtisam.tariq@emumba.com>
Acked-by: Fan Zhang <roy.fan.zhang@intel.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
  • Loading branch information
ibtisam-tariq authored and cpaelzer committed May 11, 2021
1 parent ec59dc5 commit d00a31f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/vhost_crypto/main.c
Expand Up @@ -219,7 +219,7 @@ vhost_crypto_parse_args(int argc, char **argv)

argvopt = argv;

while ((opt = getopt_long(argc, argvopt, "s:",
while ((opt = getopt_long(argc, argvopt, "",
lgopts, &option_index)) != EOF) {

switch (opt) {
Expand Down

0 comments on commit d00a31f

Please sign in to comment.