[Xfce4-commits] [panel-plugins/xfce4-netload-plugin] 02/02: Define iface length name to 32 chars max (bug #9869)

noreply at xfce.org noreply at xfce.org
Sat Nov 22 18:06:34 CET 2014


This is an automated email from the git hooks/post-receive script.

mmassonnet pushed a commit to branch master
in repository panel-plugins/xfce4-netload-plugin.

commit 18e253fc227c279fe2bdfd7e520bf17d23af9dfb
Author: Mike Massonnet <m8t at gandi.net>
Date:   Sat Nov 22 18:06:12 2014 +0100

    Define iface length name to 32 chars max (bug #9869)
---
 panel-plugin/net.h     |    2 +-
 panel-plugin/netload.c |    2 +-
 panel-plugin/slurm.h   |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/panel-plugin/net.h b/panel-plugin/net.h
index e8a48ea..2cf9ecf 100644
--- a/panel-plugin/net.h
+++ b/panel-plugin/net.h
@@ -29,7 +29,7 @@
 #define UP_UPDATE_INTERVAL 20
 #define IP_UPDATE_INTERVAL 20
 #define IP_ADDRESS_LENGTH 64
-#define INTERFACE_NAME_LENGTH 9
+#define INTERFACE_NAME_LENGTH 32
 
 #ifndef gettext_noop
 #define gettext_noop(String) String
diff --git a/panel-plugin/netload.c b/panel-plugin/netload.c
index fca03a3..e23ccc1 100644
--- a/panel-plugin/netload.c
+++ b/panel-plugin/netload.c
@@ -52,7 +52,7 @@
 static gchar* DEFAULT_COLOR[] = { "#FF4F00", "#FFE500" };
 
 #define UPDATE_TIMEOUT 250
-#define MAX_LENGTH 10
+#define MAX_LENGTH 32
 
 #define IN 0
 #define OUT 1
diff --git a/panel-plugin/slurm.h b/panel-plugin/slurm.h
index 3e62084..01e98b2 100644
--- a/panel-plugin/slurm.h
+++ b/panel-plugin/slurm.h
@@ -10,7 +10,7 @@
 #define _SLURM_H_
 
 typedef struct IfData{
-    char if_name[10];       /* The device name given as start parameter*/
+    char if_name[32];       /* The device name given as start parameter*/
     int  if_speed;          /* The Interface speed */
     char if_speedstring[12]; /* the measuring unit like Mbit, kbit */
     int  if_id;             /* The ID which the interface inside the OS has */

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list