summaryrefslogtreecommitdiffhomepage
path: root/interface.c
diff options
context:
space:
mode:
authorHans Dedecker <dedeckeh@gmail.com>2018-11-19 09:59:05 +0100
committerHans Dedecker <dedeckeh@gmail.com>2018-11-19 10:08:49 +0100
commit4b83102da60bf26b455ac8425a1f5e338ea01f8a (patch)
treea1d16ca3be08e2bae7884f28c0a35fa4afa580d5 /interface.c
parent70506bf09b8ef971ae90155bc86ef3e9bed6785f (diff)
treewide: switch to C-code style comments
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
Diffstat (limited to 'interface.c')
-rw-r--r--interface.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/interface.c b/interface.c
index 041f0a5..4cefe64 100644
--- a/interface.c
+++ b/interface.c
@@ -530,8 +530,8 @@ interface_merge_assignment_data(struct interface *old, struct interface *new)
struct interface_assignment_class *c;
list_for_each_entry(c, &new->assignment_classes, head) {
- // Compare list entries one-by-one to see if there was a change
- if (list_empty(&old->assignment_classes)) // The new list is longer
+ /* Compare list entries one-by-one to see if there was a change */
+ if (list_empty(&old->assignment_classes)) /* The new list is longer */
changed = true;
if (changed)
@@ -540,14 +540,14 @@ interface_merge_assignment_data(struct interface *old, struct interface *new)
struct interface_assignment_class *c_old = list_first_entry(&old->assignment_classes,
struct interface_assignment_class, head);
- if (strcmp(c_old->name, c->name)) // An entry didn't match
+ if (strcmp(c_old->name, c->name)) /* An entry didn't match */
break;
list_del(&c_old->head);
free(c_old);
}
- // The old list was longer than the new one or the last entry didn't match
+ /* The old list was longer than the new one or the last entry didn't match */
if (!list_empty(&old->assignment_classes)) {
interface_clear_assignment_classes(old);
changed = true;