]> git.ipfire.org Git - people/arne_f/ipfire-3.x.git/blob - net-tools/patches/net-tools-1.60-trim_iface.patch
Change file layout of the makefiles.
[people/arne_f/ipfire-3.x.git] / net-tools / patches / net-tools-1.60-trim_iface.patch
1 --- net-tools-1.60/ifconfig.c.old 2005-03-30 10:14:03.000000000 +0200
2 +++ net-tools-1.60/ifconfig.c 2005-03-30 10:40:50.000000000 +0200
3 @@ -177,7 +177,7 @@
4
5 static void usage(void)
6 {
7 - fprintf(stderr, _("Usage:\n ifconfig [-a] [-i] [-v] [-s] <interface> [[<AF>] <address>]\n"));
8 + fprintf(stderr, _("Usage:\n ifconfig [-a] [-v] [-s] <interface> [[<AF>] <address>]\n"));
9 #if HAVE_AFINET
10 fprintf(stderr, _(" [add <address>[/<prefixlen>]]\n"));
11 fprintf(stderr, _(" [del <address>[/<prefixlen>]]\n"));
12 --- net-tools-1.60/lib/interface.c.old 2005-03-30 10:14:03.000000000 +0200
13 +++ net-tools-1.60/lib/interface.c 2005-03-30 11:05:38.000000000 +0200
14 @@ -620,7 +620,7 @@
15
16 void ife_print_short(struct interface *ptr)
17 {
18 - printf("%-9.9s ", ptr->name);
19 + printf("%-9s ", ptr->name);
20 printf("%5d %3d ", ptr->mtu, ptr->metric);
21 /* If needed, display the interface statistics. */
22 if (ptr->statistics_valid) {
23 @@ -711,7 +711,7 @@
24 if (hw == NULL)
25 hw = get_hwntype(-1);
26
27 - printf(_("%-9.9s Link encap:%s "), ptr->name, hw->title);
28 + printf(_("%-9s Link encap:%s "), ptr->name, hw->title);
29 /* For some hardware types (eg Ash, ATM) we don't print the
30 hardware address if it's null. */
31 if (hw->print != NULL && (! (hw_null_address(hw, ptr->hwaddr) &&