]> git.puffer.fish Git - matthieu/frr.git/commitdiff
babeld: C-style comments
authorAdriano Marto Reis <adrianomarto@gmail.com>
Tue, 7 Dec 2021 08:18:33 +0000 (18:18 +1000)
committerAdriano Marto Reis <adrianomarto@gmail.com>
Wed, 22 Dec 2021 21:32:23 +0000 (07:32 +1000)
Replacing C++-style comments with C-style comments.

Signed-off-by: "Adriano Marto Reis" <adrianomarto@gmail.com>
babeld/babel_interface.c

index 1dae93b0edd16c19aede92451b041ee6adfd123f..e725fbffe9e2d5b63c3f67b8049abfcd0a7ab316 100644 (file)
@@ -484,9 +484,8 @@ DEFUN (babel_set_rtt_min,
     babel_ifp = babel_get_if_nfo(ifp);
     assert (babel_ifp != NULL);
 
-    babel_ifp->rtt_min =
-           rtt
-           * 1000; // value entered in milliseconds and stored as microseconds
+    /* The value is entered in milliseconds but stored as microseconds. */
+    babel_ifp->rtt_min = rtt * 1000;
     return CMD_SUCCESS;
 }
 
@@ -506,9 +505,8 @@ DEFUN (babel_set_rtt_max,
     babel_ifp = babel_get_if_nfo(ifp);
     assert (babel_ifp != NULL);
 
-    babel_ifp->rtt_max =
-           rtt
-           * 1000; // value entered in milliseconds and stored as microseconds
+    /* The value is entered in milliseconds but stored as microseconds. */
+    babel_ifp->rtt_max = rtt * 1000;
     return CMD_SUCCESS;
 }