From b12a0e62f0dc2c82a8dc068ab797f9faab4e488a Mon Sep 17 00:00:00 2001 From: Peter Krempa Date: Mon, 19 Jul 2021 13:23:29 +0200 Subject: [PATCH] virsh-volume: Avoid 'vir' prefix for locally declared VIR_ENUM* helpers MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Stuff used in virsh should use 'virsh'. Signed-off-by: Peter Krempa Reviewed-by: Ján Tomko --- tools/virsh-volume.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/virsh-volume.c b/tools/virsh-volume.c index 1da9b7217f..fe632b1b19 100644 --- a/tools/virsh-volume.c +++ b/tools/virsh-volume.c @@ -962,8 +962,8 @@ static const vshCmdOptDef opts_vol_wipe[] = { {.name = NULL} }; -VIR_ENUM_DECL(virStorageVolWipeAlgorithm); -VIR_ENUM_IMPL(virStorageVolWipeAlgorithm, +VIR_ENUM_DECL(virshStorageVolWipeAlgorithm); +VIR_ENUM_IMPL(virshStorageVolWipeAlgorithm, VIR_STORAGE_VOL_WIPE_ALG_LAST, "zero", "nnsa", "dod", "bsi", "gutmann", "schneier", "pfitzner7", "pfitzner33", "random", "trim"); @@ -985,7 +985,7 @@ cmdVolWipe(vshControl *ctl, const vshCmd *cmd) goto out; if (algorithm_str && - (algorithm = virStorageVolWipeAlgorithmTypeFromString(algorithm_str)) < 0) { + (algorithm = virshStorageVolWipeAlgorithmTypeFromString(algorithm_str)) < 0) { vshError(ctl, _("Unsupported algorithm '%s'"), algorithm_str); goto out; } -- 2.47.2