Blame SOURCES/open-lldp-v1.0.1-24-fix-build-warnings.patch

89f6b3
From 2b5539cbf6baa72da39881f1d2b13aa325509998 Mon Sep 17 00:00:00 2001
89f6b3
From: Chris Leech <cleech@redhat.com>
89f6b3
Date: Wed, 17 Jun 2015 10:40:34 -0700
89f6b3
Subject: [PATCH] fix build warnings
89f6b3
89f6b3
---
89f6b3
 include/lldp_8021qaz.h | 6 ------
89f6b3
 lldp_util.c            | 4 ++--
89f6b3
 2 files changed, 2 insertions(+), 8 deletions(-)
89f6b3
89f6b3
diff --git a/include/lldp_8021qaz.h b/include/lldp_8021qaz.h
89f6b3
index 55353b8..09dee20 100644
89f6b3
--- a/include/lldp_8021qaz.h
89f6b3
+++ b/include/lldp_8021qaz.h
89f6b3
@@ -218,9 +218,6 @@ int ieee8021qaz_mod_app(struct app_tlv_head *head, int peer,
89f6b3
 			u8 prio, u8 sel, u16 proto, u32 ops);
89f6b3
 int ieee8021qaz_app_sethw(char *ifname, struct app_tlv_head *head);
89f6b3
 
89f6b3
-inline int get_prio_map(u32 prio_map, int tc);
89f6b3
-inline void set_prio_map(u32 *prio_map, u8 prio, int tc);
89f6b3
-
89f6b3
 struct ieee8021qaz_tlvs *ieee8021qaz_data(const char *);
89f6b3
 
89f6b3
 int ieee8021qaz_tlvs_rxed(const char *ifname);
89f6b3
@@ -234,9 +231,6 @@ int ieee8021qaz_rchange(struct port *port, struct lldp_agent *,
89f6b3
 void ieee8021qaz_ifup(char *ifname, struct lldp_agent *);
89f6b3
 void ieee8021qaz_ifdown(char *ifname, struct lldp_agent *);
89f6b3
 u8 ieee8021qaz_mibDeleteObject(struct port *port, struct lldp_agent *);
89f6b3
-inline int ieee8021qaz_clif_cmd(void *data, struct sockaddr_un *from,
89f6b3
-				socklen_t fromlen, char *ibuf, int ilen,
89f6b3
-				char *rbuf);
89f6b3
 int ieee8021qaz_check_operstate(void);
89f6b3
 int get_dcbx_hw(const char *ifname, __u8 *dcbx);
89f6b3
 
89f6b3
diff --git a/lldp_util.c b/lldp_util.c
89f6b3
index f1fb7b9..f36033d 100644
89f6b3
--- a/lldp_util.c
89f6b3
+++ b/lldp_util.c
89f6b3
@@ -1177,7 +1177,7 @@ int check_link_status(const char *ifname)
89f6b3
 int get_arg_val_list(char *ibuf, int ilen, int *ioff,
89f6b3
 			    char **args, char **argvals)
89f6b3
 {
89f6b3
-	u8 arglen;
89f6b3
+	u8 arglen = 0;
89f6b3
 	u16 argvalue_len;
89f6b3
 	int *arglens = NULL;
89f6b3
 	int *argvallens = NULL;
89f6b3
@@ -1245,7 +1245,7 @@ int get_arg_val_list(char *ibuf, int ilen, int *ioff,
89f6b3
 
89f6b3
 int get_arg_list(char *ibuf, int ilen, int *ioff, char **args)
89f6b3
 {
89f6b3
-	u8 arglen;
89f6b3
+	u8 arglen = 0;
89f6b3
 	int *arglens = NULL;
89f6b3
 	int *p;
89f6b3
 	int numargs;
89f6b3
-- 
89f6b3
2.1.0
89f6b3