summaryrefslogtreecommitdiff
path: root/tools/virt-login-shell-helper.c
diff options
context:
space:
mode:
authorMichal Privoznik <mprivozn@redhat.com>2021-03-11 08:16:13 +0100
committerMichal Privoznik <mprivozn@redhat.com>2021-04-13 17:00:38 +0200
commitc8238579fb0b1c3affbd77749ae2b2c4dfafb2d6 (patch)
treec6afbdd2a2baa03b365d69018770beed4c8aff32 /tools/virt-login-shell-helper.c
parentc21f066d61e4186fec0a2d4b4f90e901ed5b9611 (diff)
downloadlibvirt-c8238579fb0b1c3affbd77749ae2b2c4dfafb2d6.tar.gz
lib: Drop internal virXXXPtr typedefs
Historically, we declared pointer type to our types: typedef struct _virXXX virXXX; typedef virXXX *virXXXPtr; But usefulness of such declaration is questionable, at best. Unfortunately, we can't drop every such declaration - we have to carry some over, because they are part of public API (e.g. virDomainPtr). But for internal types - we can do drop them and use what every other C project uses 'virXXX *'. This change was generated by a very ugly shell script that generated sed script which was then called over each file in the repository. For the shell script refer to the cover letter: https://listman.redhat.com/archives/libvir-list/2021-March/msg00537.html Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Diffstat (limited to 'tools/virt-login-shell-helper.c')
-rw-r--r--tools/virt-login-shell-helper.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/virt-login-shell-helper.c b/tools/virt-login-shell-helper.c
index f848056386..78e351867f 100644
--- a/tools/virt-login-shell-helper.c
+++ b/tools/virt-login-shell-helper.c
@@ -39,7 +39,7 @@
static const char *conf_file = SYSCONFDIR "/libvirt/virt-login-shell.conf";
-static int virLoginShellAllowedUser(virConfPtr conf,
+static int virLoginShellAllowedUser(virConf *conf,
const char *name,
gid_t *groups,
size_t ngroups)
@@ -89,7 +89,7 @@ static int virLoginShellAllowedUser(virConfPtr conf,
}
-static int virLoginShellGetShellArgv(virConfPtr conf,
+static int virLoginShellGetShellArgv(virConf *conf,
char ***shargv,
size_t *shargvlen)
{