[lldp-devel] [PATCH 05/10] vdp command line interface move defines

Thomas Richter tmricht at linux.vnet.ibm.com
Fri Apr 5 11:40:50 UTC 2013


Move some defines to the correct include file.

Signed-off-by: Thomas Richter <tmricht at linux.vnet.ibm.com>
---
 include/lldp_vdp_clif.h | 6 ------
 include/lldp_vdp_cmds.h | 8 ++++++--
 lldp_vdp_cmds.c         | 1 -
 3 files changed, 6 insertions(+), 9 deletions(-)

diff --git a/include/lldp_vdp_clif.h b/include/lldp_vdp_clif.h
index 18d3fd4..ab51426 100644
--- a/include/lldp_vdp_clif.h
+++ b/include/lldp_vdp_clif.h
@@ -29,10 +29,4 @@
 
 struct lldp_module *vdp_cli_register(void);
 
-#define VDP_BUF_SIZE                   256
-
-#define VDP_PREFIX                     "vdp"
-#define ARG_VDP_MODE                   "mode"
-#define ARG_VDP_ROLE                   "role"
-
 #endif
diff --git a/include/lldp_vdp_cmds.h b/include/lldp_vdp_cmds.h
index 22bc96b..43f23b5 100644
--- a/include/lldp_vdp_cmds.h
+++ b/include/lldp_vdp_cmds.h
@@ -37,7 +37,11 @@ enum {
        FORMAT,
 };
 
-#define VAL_STATION    "station"
-#define VAL_BRIDGE     "bridge"
+#define VAL_STATION	"station"
+#define VAL_BRIDGE	"bridge"
+#define ARG_VDP_MODE	"mode"
+#define ARG_VDP_ROLE	"role"
+#define VDP_PREFIX	"vdp"
+#define VDP_BUF_SIZE	256
 
 #endif
diff --git a/lldp_vdp_cmds.c b/lldp_vdp_cmds.c
index 2574dc9..3e90c31 100644
--- a/lldp_vdp_cmds.c
+++ b/lldp_vdp_cmds.c
@@ -35,7 +35,6 @@
 #include "lldp.h"
 #include "lldp_vdp.h"
 #include "lldp_mand_clif.h"
-#include "lldp_vdp_clif.h"
 #include "lldp_vdp_cmds.h"
 #include "lldp_qbg_utils.h"
 #include "lldp/ports.h"
-- 
1.8.1.4



More information about the lldp-devel mailing list