diff options
author | David Spencer <idlemoor@slackbuilds.org> | 2016-01-20 23:15:50 +0000 |
---|---|---|
committer | David Spencer <idlemoor@slackbuilds.org> | 2016-01-23 01:16:52 +0000 |
commit | ab5220c6fa6244d4b40d11cd9068bb7bce2ee2f7 (patch) | |
tree | 7b5a83f49ea8cf26936b6e2f4a40e60d45f313a8 /desktop/razorqt/patches | |
parent | b79446e20ba76a62e760449cfaffb50fa0f978a9 (diff) | |
download | slackbuilds-ab5220c6fa6244d4b40d11cd9068bb7bce2ee2f7.tar.gz |
desktop/razorqt: Patched to build with libstatgrab-0.91.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'desktop/razorqt/patches')
-rw-r--r-- | desktop/razorqt/patches/libstatgrab-0.90.patch | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/desktop/razorqt/patches/libstatgrab-0.90.patch b/desktop/razorqt/patches/libstatgrab-0.90.patch new file mode 100644 index 0000000000..d168e5644d --- /dev/null +++ b/desktop/razorqt/patches/libstatgrab-0.90.patch @@ -0,0 +1,57 @@ +--- a/razorqt-panel/plugin-networkmonitor/razornetworkmonitor.cpp ++++ b/razorqt-panel/plugin-networkmonitor/razornetworkmonitor.cpp +@@ -45,7 +45,7 @@ + addWidget(&m_stuff); + + /* Initialise statgrab */ +- sg_init(); ++ sg_init(1); + + m_iconList << "modem" << "monitor" + << "network" << "wireless"; +@@ -72,11 +72,11 @@ + { + bool matched = false; + +- int num_network_stats; ++ size_t num_network_stats; + + sg_network_io_stats *network_stats = sg_get_network_io_stats_diff(&num_network_stats); + +- for (int x = 0; x < num_network_stats; x++) ++ for (size_t x = 0; x < num_network_stats; x++) + { + if (m_interface == QString::fromLocal8Bit(network_stats->interface_name)) + { +@@ -129,9 +129,9 @@ + { + if (event->type() == QEvent::ToolTip) + { +- int num_network_stats; ++ size_t num_network_stats; + sg_network_io_stats *network_stats = sg_get_network_io_stats(&num_network_stats); +- for (int x = 0; x < num_network_stats; x++) ++ for (size_t x = 0; x < num_network_stats; x++) + { + if (m_interface == QString::fromLocal8Bit(network_stats->interface_name)) + { +--- a/razorqt-panel/plugin-cpuload/razorcpuload.cpp ++++ b/razorqt-panel/plugin-cpuload/razorcpuload.cpp +@@ -52,7 +52,7 @@ + addWidget(&m_stuff); + + /* Initialise statgrab */ +- sg_init(); ++ sg_init(1); + + /* Drop setuid/setgid privileges. */ + if (sg_drop_privileges() != 0) { +@@ -89,7 +89,7 @@ + + double RazorCpuLoad::getLoadCpu() const + { +- sg_cpu_percents* cur = sg_get_cpu_percents(); ++ sg_cpu_percents* cur = sg_get_cpu_percents(NULL); + return (cur->user + cur->kernel + cur->nice); + } + |