Fix build by patching the sizeof() call
This commit is contained in:
parent
88f99068c6
commit
1418290a8c
13
lldpad-0.9.45-sizeof.patch
Normal file
13
lldpad-0.9.45-sizeof.patch
Normal file
@ -0,0 +1,13 @@
|
||||
diff --git a/lldp_8021qaz_cmds.c b/lldp_8021qaz_cmds.c
|
||||
index 0db2c9c..4f23229 100644
|
||||
--- a/lldp_8021qaz_cmds.c
|
||||
+++ b/lldp_8021qaz_cmds.c
|
||||
@@ -821,7 +821,7 @@ _set_arg_tsa(struct cmd *cmd, char *args, const char *arg_value,
|
||||
toked_maps = strtok(NULL, ",");
|
||||
}
|
||||
} else if (!test) {
|
||||
- memset(tsa, 0, sizeof(tsa));
|
||||
+ memset(tsa, 0, sizeof(u8));
|
||||
}
|
||||
|
||||
if (test) {
|
@ -3,7 +3,7 @@
|
||||
|
||||
Name: lldpad
|
||||
Version: 0.9.45
|
||||
Release: 4%{?dist}
|
||||
Release: 5%{?dist}
|
||||
Summary: Intel LLDP Agent
|
||||
Group: System Environment/Daemons
|
||||
License: GPLv2
|
||||
@ -12,6 +12,7 @@ Source0: %{name}-%{version}.tar.gz
|
||||
Patch0: lldpad-0.9.45-archiver.patch
|
||||
Patch1: lldpad-0.9.41-lldptool-invalid-pointer.patch
|
||||
Patch2: lldpad-0.9.45-The-display-of-the-Management-Address-TLV-had-some.patch
|
||||
Patch3: lldpad-0.9.45-sizeof.patch
|
||||
Requires: kernel >= 2.6.32
|
||||
BuildRequires: systemd-units
|
||||
BuildRequires: libconfig-devel >= 1.3.2 kernel-headers >= 2.6.32
|
||||
@ -46,6 +47,7 @@ that use %{name}.
|
||||
%patch0 -p1 -b .archiver
|
||||
%patch1 -p1 -b .invalid-pointer
|
||||
%patch2 -p1
|
||||
%patch3 -p1
|
||||
|
||||
%build
|
||||
./bootstrap.sh
|
||||
@ -105,6 +107,9 @@ fi
|
||||
%{_libdir}/liblldp_clif.so
|
||||
|
||||
%changelog
|
||||
* Tue Mar 05 2013 Petr Šabata <contyk@redhat.com> - 0.9.45-5
|
||||
- Fix build by patching the sizeof() call in lldp_8021qaz_cmds.c
|
||||
|
||||
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.45-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user