From: Michal Privoznik Date: Tue, 7 Nov 2017 09:41:00 +0000 (+0100) Subject: vsh: Fix vshCompleter signature X-Git-Tag: v4.0.0-rc1~16 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4d3c65c2e84142527cebcedcaa50b38ddf862ed8;p=thirdparty%2Flibvirt.git 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 --- diff --git a/tools/vsh.c b/tools/vsh.c index b113c8c957..2d1be20bd6 100644 --- a/tools/vsh.c +++ b/tools/vsh.c @@ -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 diff --git a/tools/vsh.h b/tools/vsh.h index 112b1b57d8..51f8ef2135 100644 --- a/tools/vsh.h +++ b/tools/vsh.h @@ -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