--- /dev/null
+--- net-tools-1.60/rarp.c~ 2001-04-08 19:05:05.000000000 +0200
++++ net-tools-1.60/rarp.c 2013-02-16 22:41:25.888096075 +0100
+@@ -225,7 +225,7 @@
+ case 'h':
+ usage();
+ case 'V':
+- fprintf(stderr, version_string);
++ fprintf(stderr, "%s", version_string);
+ exit(E_VERSION);
+ break;
+ case 'v':
+--- net-tools-1.60/slattach.c~ 2000-10-28 12:59:41.000000000 +0200
++++ net-tools-1.60/slattach.c 2013-02-16 22:42:41.059884440 +0100
+@@ -565,7 +565,7 @@
+ "[-c cmd] [-s speed] [-p protocol] tty | -\n"
+ " slattach -V | --version\n";
+
+- fprintf(stderr, usage_msg);
++ fprintf(stderr, "%s", usage_msg);
+ exit(1);
+ }
+
+--- net-tools-1.60/mii-tool.c~ 2013-02-16 22:42:58.786976322 +0100
++++ net-tools-1.60/mii-tool.c 2013-02-16 22:43:17.657430178 +0100
+@@ -271,7 +271,7 @@
+
+ if (opt_watch) {
+ if (opt_log) {
+- syslog(LOG_INFO, buf);
++ syslog(LOG_INFO, "%s", buf);
+ } else {
+ char s[20];
+ time_t t = time(NULL);
--- /dev/null
+--- net-tools-1.60/lib/tr.c~ 2000-02-20 22:46:45.000000000 +0100
++++ net-tools-1.60/lib/tr.c 2013-02-16 22:38:06.260052375 +0100
+@@ -20,7 +20,7 @@
+ #include <sys/types.h>
+ #include <sys/socket.h>
+ #include <net/if_arp.h>
+-#include <linux/if_tr.h>
++#include <linux/if_fddi.h>
+ #include <stdlib.h>
+ #include <stdio.h>
+ #include <errno.h>
+--- net-tools-1.60/lib/tr.c~ 2013-02-16 22:39:03.864803754 +0100
++++ net-tools-1.60/lib/tr.c 2013-02-16 22:40:02.122803924 +0100
+@@ -31,6 +31,10 @@
+ #include "pathnames.h"
+ #include "intl.h"
+
++#ifndef TR_ALEN
++#define TR_ALEN FDDI_K_ALEN
++#endif
++
+ extern struct hwtype tr_hwtype;
+
+ static char *pr_tr(unsigned char *ptr)
Patch19: %{name}-netstat-overflow.patch
Patch20: %{name}-netstat-netlink-diag.patch
Patch21: %{name}-statistics_buffer.patch
+Patch22: %{name}-tr.patch
+Patch23: %{name}-Werror.patch
URL: http://net-tools.berlios.de/
BuildRequires: gettext-devel
Requires: hostname
%patch19 -p1
%patch20 -p0
%patch21 -p1
+%patch22 -p1
+%patch23 -p1
mv po/et_EE.po po/et.po