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>
#ifdef WITH_READLINE
/* For autocompletion */
-void *autoCompleteOpaque;
+vshControl *autoCompleteOpaque;
#endif
/* NOTE: It would be much nicer to have these two as part of vshControl
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