make mii-diag compile with -Werror=format-security (#1037218)
This commit is contained in:
parent
6d9777aae9
commit
336e487a33
@ -209,7 +209,7 @@ main(int argc, char **argv)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (verbose || opt_version)
|
if (verbose || opt_version)
|
||||||
printf(version);
|
printf("%s", version);
|
||||||
|
|
||||||
/* Open a basic socket. */
|
/* Open a basic socket. */
|
||||||
if ((skfd = socket(AF_INET, SOCK_DGRAM,0)) < 0) {
|
if ((skfd = socket(AF_INET, SOCK_DGRAM,0)) < 0) {
|
||||||
@ -541,7 +541,7 @@ int show_basic_mii(long ioaddr, int phy_id)
|
|||||||
bmcr & 0x0100 ? "full":"half");
|
bmcr & 0x0100 ? "full":"half");
|
||||||
for (i = 0; i < 9; i++)
|
for (i = 0; i < 9; i++)
|
||||||
if (bmcr & (0x0080<<i))
|
if (bmcr & (0x0080<<i))
|
||||||
printf(bmcr_bits[i]);
|
printf("%s", bmcr_bits[i]);
|
||||||
|
|
||||||
new_bmsr = mdio_read(ioaddr, phy_id, 1);
|
new_bmsr = mdio_read(ioaddr, phy_id, 1);
|
||||||
if ((bmsr & 0x0016) == 0x0004)
|
if ((bmsr & 0x0016) == 0x0004)
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
Summary: Basic networking tools
|
Summary: Basic networking tools
|
||||||
Name: net-tools
|
Name: net-tools
|
||||||
Version: 2.0
|
Version: 2.0
|
||||||
Release: 0.17.%{checkout}%{?dist}
|
Release: 0.18.%{checkout}%{?dist}
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
Group: System Environment/Base
|
Group: System Environment/Base
|
||||||
URL: http://sourceforge.net/projects/net-tools/
|
URL: http://sourceforge.net/projects/net-tools/
|
||||||
@ -157,6 +157,9 @@ install -m 644 %{SOURCE9} %{buildroot}%{_unitdir}
|
|||||||
%attr(0644,root,root) %{_unitdir}/arp-ethers.service
|
%attr(0644,root,root) %{_unitdir}/arp-ethers.service
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Dec 03 2013 Jiri Popelka <jpopelka@redhat.com> - 2.0-0.18.20131119git
|
||||||
|
- make mii-diag compile with -Werror=format-security (#1037218)
|
||||||
|
|
||||||
* Tue Nov 19 2013 Jiri Popelka <jpopelka@redhat.com> - 2.0-0.17.20131119git
|
* Tue Nov 19 2013 Jiri Popelka <jpopelka@redhat.com> - 2.0-0.17.20131119git
|
||||||
- latest snapshot (#1021109)
|
- latest snapshot (#1021109)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user