vsh: Fix vshCompleter signature

The first argument passed to this function is vshControl *.
There's no need to use void pointer.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
Michal Privoznik 2017-11-07 10:41:00 +01:00
parent 72bf14d345
commit 4d3c65c2e8
2 changed files with 3 additions and 2 deletions

View File

@ -66,7 +66,7 @@
#ifdef WITH_READLINE
/* For autocompletion */
void *autoCompleteOpaque;
vshControl *autoCompleteOpaque;
#endif
/* NOTE: It would be much nicer to have these two as part of vshControl

View File

@ -123,7 +123,8 @@ typedef struct _vshCmdOpt vshCmdOpt;
typedef struct _vshCmdOptDef vshCmdOptDef;
typedef struct _vshControl vshControl;
typedef char **(*vshCompleter)(void *opaque, unsigned int flags);
typedef char **(*vshCompleter)(vshControl *ctl,
unsigned int flags);
/*
* vshCmdInfo -- name/value pair for information about command