]> git.puffer.fish Git - mirror/frr.git/commitdiff
lib: Fix zclient.c `enum event` to `enum zclient_event` 10713/head
authorDonald Sharp <sharpd@nvidia.com>
Wed, 2 Mar 2022 14:19:05 +0000 (09:19 -0500)
committerDonald Sharp <sharpd@nvidia.com>
Wed, 2 Mar 2022 14:19:05 +0000 (09:19 -0500)
zclient.c is using `enum event` let's rename it to a better
named data structure `enum zclient_event`.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
lib/zclient.c

index cfccb216676055d980845bf98eb706c631025fa7..930adf6a7af20d95cf7a1ca369b4ca209658e887 100644 (file)
@@ -47,10 +47,10 @@ DEFINE_MTYPE_STATIC(LIB, ZCLIENT, "Zclient");
 DEFINE_MTYPE_STATIC(LIB, REDIST_INST, "Redistribution instance IDs");
 
 /* Zebra client events. */
-enum event { ZCLIENT_SCHEDULE, ZCLIENT_READ, ZCLIENT_CONNECT };
+enum zclient_event { ZCLIENT_SCHEDULE, ZCLIENT_READ, ZCLIENT_CONNECT };
 
 /* Prototype for event manager. */
-static void zclient_event(enum event, struct zclient *);
+static void zclient_event(enum zclient_event, struct zclient *);
 
 static void zebra_interface_if_set_value(struct stream *s,
                                         struct interface *ifp);
@@ -4038,7 +4038,7 @@ void zclient_redistribute_default(int command, struct zclient *zclient,
                zebra_redistribute_default_send(command, zclient, afi, vrf_id);
 }
 
-static void zclient_event(enum event event, struct zclient *zclient)
+static void zclient_event(enum zclient_event event, struct zclient *zclient)
 {
        switch (event) {
        case ZCLIENT_SCHEDULE: