]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
vsh: Fix vshCompleter signature
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 7 Nov 2017 09:41:00 +0000 (10:41 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 11 Jan 2018 17:53:04 +0000 (18:53 +0100)
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>
tools/vsh.c
tools/vsh.h

index b113c8c9579b1f100739697e2e5e37e8f9c1125a..2d1be20bd6157763159368571ec2e82a98cfa276 100644 (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
index 112b1b57d8d8fce6851e4370de08c58caa153d1f..51f8ef21358fde61ed829134518cf0666664779a 100644 (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