From: | "Samuli Suominen (ssuominen)" <ssuominen@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in xfce-extra/xfce4-netload-plugin/files: xfce4-netload-plugin-1.2.0-interface_name_length.patch |
Date: | Sun, 28 Jul 2013 10:21:10 |
Message-Id: | 20130728102102.DEE3E2171C@flycatcher.gentoo.org |
1 | ssuominen 13/07/28 10:21:02 |
2 | |
3 | Added: |
4 | xfce4-netload-plugin-1.2.0-interface_name_length.patch |
5 | Log: |
6 | Increase the max. length of the interface names wrt #478454 by Florian Berger |
7 | |
8 | (Portage version: 2.2.0_alpha188/cvs/Linux x86_64, signed Manifest commit with key 4868F14D) |
9 | |
10 | Revision Changes Path |
11 | 1.1 xfce-extra/xfce4-netload-plugin/files/xfce4-netload-plugin-1.2.0-interface_name_length.patch |
12 | |
13 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/xfce-extra/xfce4-netload-plugin/files/xfce4-netload-plugin-1.2.0-interface_name_length.patch?rev=1.1&view=markup |
14 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/xfce-extra/xfce4-netload-plugin/files/xfce4-netload-plugin-1.2.0-interface_name_length.patch?rev=1.1&content-type=text/plain |
15 | |
16 | Index: xfce4-netload-plugin-1.2.0-interface_name_length.patch |
17 | =================================================================== |
18 | http://bugs.gentoo.org/478454 |
19 | http://bugzilla.xfce.org/show_bug.cgi?id=9807 |
20 | |
21 | --- panel-plugin/net.h |
22 | +++ panel-plugin/net.h |
23 | @@ -29,7 +29,7 @@ |
24 | #define UP_UPDATE_INTERVAL 20 |
25 | #define IP_UPDATE_INTERVAL 20 |
26 | #define IP_ADDRESS_LENGTH 64 |
27 | -#define INTERFACE_NAME_LENGTH 9 |
28 | +#define INTERFACE_NAME_LENGTH 19 |
29 | |
30 | #ifndef gettext_noop |
31 | #define gettext_noop(String) String |
32 | --- panel-plugin/netload.c |
33 | +++ panel-plugin/netload.c |
34 | @@ -51,7 +51,7 @@ |
35 | static gchar* DEFAULT_COLOR[] = { "#FF4F00", "#FFE500" }; |
36 | |
37 | #define UPDATE_TIMEOUT 250 |
38 | -#define MAX_LENGTH 10 |
39 | +#define MAX_LENGTH 20 |
40 | |
41 | #define IN 0 |
42 | #define OUT 1 |
43 | --- panel-plugin/slurm.h |
44 | +++ panel-plugin/slurm.h |
45 | @@ -10,7 +10,7 @@ |
46 | #define _SLURM_H_ |
47 | |
48 | typedef struct IfData{ |
49 | - char if_name[10]; /* The device name given as start parameter*/ |
50 | + char if_name[20]; /* The device name given as start parameter*/ |
51 | int if_speed; /* The Interface speed */ |
52 | char if_speedstring[12]; /* the measuring unit like Mbit, kbit */ |
53 | int if_id; /* The ID which the interface inside the OS has */ |