This commit is contained in:
parent
36dace4e1d
commit
bed40a0645
20
net-tools-1.60-printval-conversion.patch
Normal file
20
net-tools-1.60-printval-conversion.patch
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
--- net-tools-1.60/statistics.c 2009-05-12 19:11:39.000000000 +0000
|
||||||
|
+++ net-tools-1.60/statistics.c 2009-05-12 19:12:26.000000000 +0000
|
||||||
|
@@ -233,7 +233,7 @@
|
||||||
|
return strcmp(((struct entry *) a)->title, ((struct entry *) b)->title);
|
||||||
|
}
|
||||||
|
|
||||||
|
-void printval(struct tabtab *tab, char *title, int val)
|
||||||
|
+void printval(struct tabtab *tab, char *title, signed long val)
|
||||||
|
{
|
||||||
|
struct entry *ent = NULL, key;
|
||||||
|
int type;
|
||||||
|
@@ -244,7 +244,7 @@
|
||||||
|
ent = bsearch(&key, tab->tab, tab->size / sizeof(struct entry),
|
||||||
|
sizeof(struct entry), cmpentries);
|
||||||
|
if (!ent) { /* try our best */
|
||||||
|
- printf("%*s%s: %d\n", states[state].indent, "", title, val);
|
||||||
|
+ printf("%*s%s: %lu\n", states[state].indent, "", title, val);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
type = ent->type;
|
@ -1,3 +1,10 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu May 7 10:05:09 CEST 2009 - ms@suse.de
|
||||||
|
|
||||||
|
- fixed data type of third argument in printval function.
|
||||||
|
Also make sure the printf call in this function uses the
|
||||||
|
correct format sequence (bnc #501113)
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Mar 25 16:23:29 CET 2009 - ms@suse.de
|
Wed Mar 25 16:23:29 CET 2009 - ms@suse.de
|
||||||
|
|
||||||
|
@ -28,7 +28,7 @@ Provides: iputils:/usr/share/man/man8/traceroute6.1.gz
|
|||||||
Obsoletes: traceroute net_tool
|
Obsoletes: traceroute net_tool
|
||||||
AutoReqProv: on
|
AutoReqProv: on
|
||||||
Version: 1.60
|
Version: 1.60
|
||||||
Release: 726
|
Release: 727
|
||||||
Summary: Important Programs for Networking
|
Summary: Important Programs for Networking
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
Source: net-tools-%{version}.tar.bz2
|
Source: net-tools-%{version}.tar.bz2
|
||||||
@ -68,6 +68,7 @@ Patch32: net-tools-1.60-netstat-ci.diff
|
|||||||
Patch33: net-tools-1.60-ifconfig-SIOCSIFNETMASK.diff
|
Patch33: net-tools-1.60-ifconfig-SIOCSIFNETMASK.diff
|
||||||
Patch34: net-tools-1.60-interface_socket.diff
|
Patch34: net-tools-1.60-interface_socket.diff
|
||||||
Patch35: net-tools-1.60-interface_mtu.diff
|
Patch35: net-tools-1.60-interface_mtu.diff
|
||||||
|
Patch36: net-tools-1.60-printval-conversion.patch
|
||||||
|
|
||||||
%description
|
%description
|
||||||
This package contains essential programs for network administration and
|
This package contains essential programs for network administration and
|
||||||
@ -121,6 +122,7 @@ cd ..
|
|||||||
%patch33 -p1
|
%patch33 -p1
|
||||||
%patch34 -p1
|
%patch34 -p1
|
||||||
%patch35 -p1
|
%patch35 -p1
|
||||||
|
%patch36 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
make config
|
make config
|
||||||
@ -174,6 +176,10 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%lang(pt_BR) %doc %_mandir/pt_BR/man*/*
|
%lang(pt_BR) %doc %_mandir/pt_BR/man*/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu May 07 2009 ms@suse.de
|
||||||
|
- fixed data type of third argument in printval function.
|
||||||
|
Also make sure the printf call in this function uses the
|
||||||
|
correct format sequence (bnc #501113)
|
||||||
* Wed Mar 25 2009 ms@suse.de
|
* Wed Mar 25 2009 ms@suse.de
|
||||||
- increased field length for display of MTU value (bnc #486014)
|
- increased field length for display of MTU value (bnc #486014)
|
||||||
* Thu Nov 20 2008 ms@suse.de
|
* Thu Nov 20 2008 ms@suse.de
|
||||||
@ -300,7 +306,7 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
- added non-en manpage directories to filelist
|
- added non-en manpage directories to filelist
|
||||||
* Mon May 19 2003 mmj@suse.de
|
* Mon May 19 2003 mmj@suse.de
|
||||||
- Use a better and more tested nstrcmp.c [#26950]
|
- Use a better and more tested nstrcmp.c [#26950]
|
||||||
* Tue May 13 2003 ro@suse.de
|
* Wed May 14 2003 ro@suse.de
|
||||||
- fix build with 2.5 kernel includes
|
- fix build with 2.5 kernel includes
|
||||||
* Tue May 13 2003 mmj@suse.de
|
* Tue May 13 2003 mmj@suse.de
|
||||||
- Package man-pages in several languages
|
- Package man-pages in several languages
|
||||||
@ -368,7 +374,7 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
- Update to 1.53, remove ypdomainname and nisdomainname
|
- Update to 1.53, remove ypdomainname and nisdomainname
|
||||||
* Sat Jun 26 1999 kukuk@suse.de
|
* Sat Jun 26 1999 kukuk@suse.de
|
||||||
- update from jurix to 1.52
|
- update from jurix to 1.52
|
||||||
* Tue Mar 09 1999 ro@suse.de
|
* Wed Mar 10 1999 ro@suse.de
|
||||||
- update to 1.50
|
- update to 1.50
|
||||||
- included slattach and its manpage in filelist
|
- included slattach and its manpage in filelist
|
||||||
* Wed Oct 28 1998 ro@suse.de
|
* Wed Oct 28 1998 ro@suse.de
|
||||||
|
Loading…
Reference in New Issue
Block a user