]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
virnetdevbridge.c: Fix comments in virNetDevBridgeSetupVlans()
authorMichal Privoznik <mprivozn@redhat.com>
Mon, 12 May 2025 12:27:58 +0000 (14:27 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 14 May 2025 10:32:07 +0000 (12:32 +0200)
We still use C89 style of comments. Fix C99 style of comments
used in virNetDevBridgeSetupVlans().

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
src/util/virnetdevbridge.c

index c79d0c79b7b16a0a070b5013ed7df9d0a63b1c38..3b54e2cb1e0002184d86d34e0cea13f6a52cea7d 100644 (file)
@@ -322,7 +322,7 @@ virNetDevBridgeSetupVlans(const char *ifname, const virNetDevVlan *virtVlan)
     if (!virtVlan || !virtVlan->nTags)
         return 0;
 
-    // The interface will have been automatically added to vlan 1, so remove it
+    /* The interface will have been automatically added to vlan 1, so remove it. */
     if (virNetlinkBridgeVlanFilterSet(ifname, RTM_DELLINK, 0, 1, &error) < 0) {
         if (error != 0) {
             virReportSystemError(-error,
@@ -332,7 +332,7 @@ virNetDevBridgeSetupVlans(const char *ifname, const virNetDevVlan *virtVlan)
         return -1;
     }
 
-    // If trunk mode, add the native VLAN then add the others, if any
+    /* If trunk mode, add the native VLAN then add the others, if any. */
     if (virtVlan->trunk) {
         size_t i;
 
@@ -357,7 +357,7 @@ virNetDevBridgeSetupVlans(const char *ifname, const virNetDevVlan *virtVlan)
                 }
         }
     } else {
-        // In native mode, add the single VLAN as pvid untagged
+        /* In native mode, add the single VLAN as pvid untagged. */
         flags = BRIDGE_VLAN_INFO_PVID | BRIDGE_VLAN_INFO_UNTAGGED;
         if (virNetlinkBridgeVlanFilterSet(ifname, RTM_SETLINK, flags,
                                           virtVlan->tag[0], &error) < 0) {