[lldp-devel] [PATCH 1/2] vdp22 make function vdp22_local2str static

Thomas Richter tmricht at linux.vnet.ibm.com
Tue Nov 19 11:59:09 UTC 2013


Remove function prototype vdp22_local2str() from header file and
define it static. This function is needed only vdp22 protocol
debug printout.

Signed-off-by: Thomas Richter <tmricht at linux.vnet.ibm.com>
---
 include/qbg_vdp22.h | 1 -
 qbg/vdp22.c         | 2 +-
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/include/qbg_vdp22.h b/include/qbg_vdp22.h
index aa3d5c5..d34e16d 100644
--- a/include/qbg_vdp22.h
+++ b/include/qbg_vdp22.h
@@ -174,7 +174,6 @@ int vdp22_nlback(struct vsi22 *);
 struct vsi22 *vdp22_copy_vsi(struct vsi22 *);
 void vdp22_listdel_vsi(struct vsi22 *);
 int vdp22br_resources(struct vsi22 *, int *);
-int vdp22_local2str(const u8 *, char *, size_t);
 
 /*
  * Functions to get and set vlan identifier and qos.
diff --git a/qbg/vdp22.c b/qbg/vdp22.c
index 6188fbc..72ffbba 100644
--- a/qbg/vdp22.c
+++ b/qbg/vdp22.c
@@ -77,7 +77,7 @@ int vdp22_ipv62str(const u8 *p, char *dst, size_t size)
 	return -1;
 }
 
-int vdp22_local2str(const u8 *p, char *dst, size_t size)
+static int vdp22_local2str(const u8 *p, char *dst, size_t size)
 {
 	if (dst && size > VDP_UUID_STRLEN) {
 		snprintf(dst, size, "%02x%02x%02x%02x%02x%02x%02x%02x"
-- 
1.8.3.1



More information about the lldp-devel mailing list