]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
virsh-volume: Avoid 'vir' prefix for locally declared VIR_ENUM* helpers
authorPeter Krempa <pkrempa@redhat.com>
Mon, 19 Jul 2021 11:23:29 +0000 (13:23 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 23 Jul 2021 07:59:12 +0000 (09:59 +0200)
Stuff used in virsh should use 'virsh'.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
tools/virsh-volume.c

index 1da9b7217fa418c1adef698c0564074c908dd8c7..fe632b1b1999dfa11ac7c93743bf49f63311e557 100644 (file)
@@ -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;
     }