From dae15c284248d49079ad5f8a3d8ff30e217f419e Mon Sep 17 00:00:00 2001 From: Dimitri Staessens Date: Thu, 25 Jul 2019 12:50:46 +0200 Subject: build: Refactor normal to unicast This completes the renaming of the normal IPCP to the unicast IPCP in the sources, to get everything consistent with the documentation. Signed-off-by: Dimitri Staessens Signed-off-by: Sander Vrijders --- src/tools/irm/irm_ipcp_enroll.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/tools/irm/irm_ipcp_enroll.c') diff --git a/src/tools/irm/irm_ipcp_enroll.c b/src/tools/irm/irm_ipcp_enroll.c index 1053683b..5aff790f 100644 --- a/src/tools/irm/irm_ipcp_enroll.c +++ b/src/tools/irm/irm_ipcp_enroll.c @@ -46,7 +46,7 @@ #include -#define NORMAL "unicast" +#define UNICAST "unicast" #define BROADCAST "broadcast" static void usage(void) @@ -55,9 +55,9 @@ static void usage(void) " name \n" " [layer ]\n" " [dst ]\n" - " [type [TYPE], default = " NORMAL "]\n" + " [type [TYPE], default = " UNICAST "]\n" " [autobind]\n" - "where TYPE = {" NORMAL " " BROADCAST "}\n"); + "where TYPE = {" UNICAST " " BROADCAST "}\n"); } static int get_layer_name(const char * ipcp, @@ -92,7 +92,7 @@ int do_enroll_ipcp(int argc, int i = 0; bool autobind = false; int cargs; - char * ipcp_type = NORMAL; + char * ipcp_type = UNICAST; enum ipcp_type type = IPCP_INVALID; while (argc > 0) { @@ -126,8 +126,8 @@ int do_enroll_ipcp(int argc, if (dst == NULL) dst = layer; - if (strcmp(ipcp_type, NORMAL) == 0) - type = IPCP_NORMAL; + if (strcmp(ipcp_type, UNICAST) == 0) + type = IPCP_UNICAST; else if (strcmp(ipcp_type, BROADCAST) == 0) type = IPCP_BROADCAST; -- cgit v1.2.3