mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-20 07:59:00 +00:00
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:
parent
72bf14d345
commit
4d3c65c2e8
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user