]> git.puffer.fish Git - mirror/frr.git/commitdiff
lib: Rename `enum event` to `enum vty_event`
authorDonald Sharp <sharpd@nvidia.com>
Mon, 28 Feb 2022 16:49:43 +0000 (11:49 -0500)
committerDonald Sharp <sharpd@nvidia.com>
Wed, 2 Mar 2022 14:17:47 +0000 (09:17 -0500)
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
lib/vty.c

index 6aa8a0bbb506b95ed6154c39d51d07ca5340ccdb..78ef9894de89c7314484b093d5689ce69bebc411 100644 (file)
--- a/lib/vty.c
+++ b/lib/vty.c
@@ -65,7 +65,7 @@ DEFINE_MTYPE_STATIC(LIB, VTY_HIST, "VTY history");
 DECLARE_DLIST(vtys, struct vty, itm);
 
 /* Vty events */
-enum event {
+enum vty_event {
        VTY_SERV,
        VTY_READ,
        VTY_WRITE,
@@ -90,8 +90,8 @@ struct vty_serv {
 
 DECLARE_DLIST(vtyservs, struct vty_serv, itm);
 
-static void vty_event_serv(enum event event, struct vty_serv *);
-static void vty_event(enum event, struct vty *);
+static void vty_event_serv(enum vty_event event, struct vty_serv *);
+static void vty_event(enum vty_event, struct vty *);
 
 /* Extern host structure from command.c */
 extern struct host host;
@@ -2683,7 +2683,7 @@ int vty_config_node_exit(struct vty *vty)
 /* Master of the threads. */
 static struct thread_master *vty_master;
 
-static void vty_event_serv(enum event event, struct vty_serv *vty_serv)
+static void vty_event_serv(enum vty_event event, struct vty_serv *vty_serv)
 {
        switch (event) {
        case VTY_SERV:
@@ -2701,7 +2701,7 @@ static void vty_event_serv(enum event event, struct vty_serv *vty_serv)
        }
 }
 
-static void vty_event(enum event event, struct vty *vty)
+static void vty_event(enum vty_event event, struct vty *vty)
 {
        switch (event) {
 #ifdef VTYSH