aboutsummaryrefslogtreecommitdiff
path: root/x11
diff options
context:
space:
mode:
authorOlivier Duchateau <olivierd@FreeBSD.org>2017-02-20 22:59:38 +0000
committerOlivier Duchateau <olivierd@FreeBSD.org>2017-02-20 22:59:38 +0000
commit7dc890babd9c554af930195e167c0a6ef6e4b8cc (patch)
treec2cdbe827198b7ab0b8b9a65d8762bc7d0c2e2a6 /x11
parente6fd87cd96eb0e06e2019d96585f314bd82d0efa (diff)
downloadports-7dc890babd9c554af930195e167c0a6ef6e4b8cc.tar.gz
ports-7dc890babd9c554af930195e167c0a6ef6e4b8cc.zip
Notes
Diffstat (limited to 'x11')
-rw-r--r--x11/xfce4-taskmanager/files/patch-src__task-manager-freebsd.c95
1 files changed, 46 insertions, 49 deletions
diff --git a/x11/xfce4-taskmanager/files/patch-src__task-manager-freebsd.c b/x11/xfce4-taskmanager/files/patch-src__task-manager-freebsd.c
index 8264815a9f6a..8fb41538cb6f 100644
--- a/x11/xfce4-taskmanager/files/patch-src__task-manager-freebsd.c
+++ b/x11/xfce4-taskmanager/files/patch-src__task-manager-freebsd.c
@@ -1,49 +1,46 @@
---- patch-src_task-manager-freebsd.c.orig 2017-02-20 17:11:50 UTC
-+++ patch-src_task-manager-freebsd.c
-@@ -0,0 +1,46 @@
-+--- src/task-manager-freebsd.c.orig 2017-01-23 06:53:01 UTC
-++++ src/task-manager-freebsd.c
-+@@ -26,11 +26,11 @@
-+
-+ #include "task-manager.h"
-+
-+-gulong
-++guint64
-+ get_mem_by_bytes (const gchar *name)
-+ {
-+- gulong buf;
-+- gsize len = sizeof (gulong);
-++ guint64 buf = 0;
-++ gsize len = sizeof (buf);
-+
-+ if (sysctlbyname (name, &buf, &len, NULL, 0) < 0)
-+ return 0;
-+@@ -41,13 +41,13 @@ get_mem_by_bytes (const gchar *name)
-+ guint64
-+ get_mem_by_pages (const gchar *name)
-+ {
-+- gulong res;
-++ guint64 res;
-+
-+ res = get_mem_by_bytes (name);
-+ if (res > 0)
-+ res = res * getpagesize ();
-+
-+- return (guint64) res;
-++ return res;
-+ }
-+
-+ gboolean
-+@@ -55,10 +55,10 @@ get_memory_usage (guint64 *memory_total,
-+ {
-+ /* Get memory usage */
-+ {
-+- *memory_total = (guint64) get_mem_by_bytes ("hw.physmem");;
-++ *memory_total = get_mem_by_bytes ("hw.physmem");;
-+ *memory_free = get_mem_by_pages ("vm.stats.vm.v_free_count");
-+ *memory_cache = get_mem_by_pages ("vm.stats.vm.v_inactive_count");
-+- *memory_buffers = (guint64) get_mem_by_bytes ("vfs.bufspace");
-++ *memory_buffers = get_mem_by_bytes ("vfs.bufspace");
-+ }
-+
-+ /* Get swap usage */
+--- src/task-manager-freebsd.c.orig 2017-01-23 06:53:01 UTC
++++ src/task-manager-freebsd.c
+@@ -26,11 +26,11 @@
+
+ #include "task-manager.h"
+
+-gulong
++guint64
+ get_mem_by_bytes (const gchar *name)
+ {
+- gulong buf;
+- gsize len = sizeof (gulong);
++ guint64 buf = 0;
++ gsize len = sizeof (buf);
+
+ if (sysctlbyname (name, &buf, &len, NULL, 0) < 0)
+ return 0;
+@@ -41,13 +41,13 @@ get_mem_by_bytes (const gchar *name)
+ guint64
+ get_mem_by_pages (const gchar *name)
+ {
+- gulong res;
++ guint64 res;
+
+ res = get_mem_by_bytes (name);
+ if (res > 0)
+ res = res * getpagesize ();
+
+- return (guint64) res;
++ return res;
+ }
+
+ gboolean
+@@ -55,10 +55,10 @@ get_memory_usage (guint64 *memory_total,
+ {
+ /* Get memory usage */
+ {
+- *memory_total = (guint64) get_mem_by_bytes ("hw.physmem");;
++ *memory_total = get_mem_by_bytes ("hw.physmem");;
+ *memory_free = get_mem_by_pages ("vm.stats.vm.v_free_count");
+ *memory_cache = get_mem_by_pages ("vm.stats.vm.v_inactive_count");
+- *memory_buffers = (guint64) get_mem_by_bytes ("vfs.bufspace");
++ *memory_buffers = get_mem_by_bytes ("vfs.bufspace");
+ }
+
+ /* Get swap usage */