mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-24 04:33:24 +00:00
Use a size_t to hold the result of sizeof() instead of an unsigned int.
Use a const char * instead of a char * type for a variable to quiet a warning. These fix the build on alpha. Requested by: kris
This commit is contained in:
parent
24ff7276b7
commit
b20dd48b3d
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=77152
@ -1,13 +1,6 @@
|
|||||||
Index: ksim/monitors/cpu/ksimcpu.cpp
|
--- ksim/monitors/cpu/ksimcpu.cpp.orig Mon May 13 10:47:51 2002
|
||||||
===================================================================
|
+++ ksim/monitors/cpu/ksimcpu.cpp Mon Mar 17 13:26:46 2003
|
||||||
RCS file: /home/kde/kdeutils/ksim/monitors/cpu/ksimcpu.cpp,v
|
@@ -42,8 +42,16 @@
|
||||||
retrieving revision 1.21
|
|
||||||
diff -u -5 -p -d -r1.21 ksimcpu.cpp
|
|
||||||
--- ksim/monitors/cpu/ksimcpu.cpp 13 May 2002 14:47:51 -0000 1.21
|
|
||||||
+++ ksim/monitors/cpu/ksimcpu.cpp 3 Mar 2003 07:38:33 -0000
|
|
||||||
@@ -40,12 +40,20 @@
|
|
||||||
#include <chart.h>
|
|
||||||
#include <progress.h>
|
|
||||||
#include <themetypes.h>
|
#include <themetypes.h>
|
||||||
|
|
||||||
#ifdef Q_OS_BSD4
|
#ifdef Q_OS_BSD4
|
||||||
@ -25,5 +18,14 @@ diff -u -5 -p -d -r1.21 ksimcpu.cpp
|
|||||||
#include <sys/sysctl.h>
|
#include <sys/sysctl.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <kvm.h>
|
#include <kvm.h>
|
||||||
#ifdef Q_OS_NETBSD
|
@@ -246,8 +254,8 @@
|
||||||
#include <sys/sched.h>
|
static int oidCpuTime[CTL_MAXNAME + 2];
|
||||||
|
static size_t oidCpuTimeLen = sizeof(oidCpuTime);
|
||||||
|
long cpuTime[CPUSTATES];
|
||||||
|
- unsigned int cpuTimeLen = sizeof(cpuTime);
|
||||||
|
- static char *name = "kern.cp_time";
|
||||||
|
+ size_t cpuTimeLen = sizeof(cpuTime);
|
||||||
|
+ static const char *name = "kern.cp_time";
|
||||||
|
static int initialized = 0;
|
||||||
|
|
||||||
|
if (!initialized) {
|
||||||
|
@ -1,13 +1,6 @@
|
|||||||
Index: ksim/monitors/cpu/ksimcpu.cpp
|
--- ksim/monitors/cpu/ksimcpu.cpp.orig Mon May 13 10:47:51 2002
|
||||||
===================================================================
|
+++ ksim/monitors/cpu/ksimcpu.cpp Mon Mar 17 13:26:46 2003
|
||||||
RCS file: /home/kde/kdeutils/ksim/monitors/cpu/ksimcpu.cpp,v
|
@@ -42,8 +42,16 @@
|
||||||
retrieving revision 1.21
|
|
||||||
diff -u -5 -p -d -r1.21 ksimcpu.cpp
|
|
||||||
--- ksim/monitors/cpu/ksimcpu.cpp 13 May 2002 14:47:51 -0000 1.21
|
|
||||||
+++ ksim/monitors/cpu/ksimcpu.cpp 3 Mar 2003 07:38:33 -0000
|
|
||||||
@@ -40,12 +40,20 @@
|
|
||||||
#include <chart.h>
|
|
||||||
#include <progress.h>
|
|
||||||
#include <themetypes.h>
|
#include <themetypes.h>
|
||||||
|
|
||||||
#ifdef Q_OS_BSD4
|
#ifdef Q_OS_BSD4
|
||||||
@ -25,5 +18,14 @@ diff -u -5 -p -d -r1.21 ksimcpu.cpp
|
|||||||
#include <sys/sysctl.h>
|
#include <sys/sysctl.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <kvm.h>
|
#include <kvm.h>
|
||||||
#ifdef Q_OS_NETBSD
|
@@ -246,8 +254,8 @@
|
||||||
#include <sys/sched.h>
|
static int oidCpuTime[CTL_MAXNAME + 2];
|
||||||
|
static size_t oidCpuTimeLen = sizeof(oidCpuTime);
|
||||||
|
long cpuTime[CPUSTATES];
|
||||||
|
- unsigned int cpuTimeLen = sizeof(cpuTime);
|
||||||
|
- static char *name = "kern.cp_time";
|
||||||
|
+ size_t cpuTimeLen = sizeof(cpuTime);
|
||||||
|
+ static const char *name = "kern.cp_time";
|
||||||
|
static int initialized = 0;
|
||||||
|
|
||||||
|
if (!initialized) {
|
||||||
|
@ -1,13 +1,6 @@
|
|||||||
Index: ksim/monitors/cpu/ksimcpu.cpp
|
--- ksim/monitors/cpu/ksimcpu.cpp.orig Mon May 13 10:47:51 2002
|
||||||
===================================================================
|
+++ ksim/monitors/cpu/ksimcpu.cpp Mon Mar 17 13:26:46 2003
|
||||||
RCS file: /home/kde/kdeutils/ksim/monitors/cpu/ksimcpu.cpp,v
|
@@ -42,8 +42,16 @@
|
||||||
retrieving revision 1.21
|
|
||||||
diff -u -5 -p -d -r1.21 ksimcpu.cpp
|
|
||||||
--- ksim/monitors/cpu/ksimcpu.cpp 13 May 2002 14:47:51 -0000 1.21
|
|
||||||
+++ ksim/monitors/cpu/ksimcpu.cpp 3 Mar 2003 07:38:33 -0000
|
|
||||||
@@ -40,12 +40,20 @@
|
|
||||||
#include <chart.h>
|
|
||||||
#include <progress.h>
|
|
||||||
#include <themetypes.h>
|
#include <themetypes.h>
|
||||||
|
|
||||||
#ifdef Q_OS_BSD4
|
#ifdef Q_OS_BSD4
|
||||||
@ -25,5 +18,14 @@ diff -u -5 -p -d -r1.21 ksimcpu.cpp
|
|||||||
#include <sys/sysctl.h>
|
#include <sys/sysctl.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <kvm.h>
|
#include <kvm.h>
|
||||||
#ifdef Q_OS_NETBSD
|
@@ -246,8 +254,8 @@
|
||||||
#include <sys/sched.h>
|
static int oidCpuTime[CTL_MAXNAME + 2];
|
||||||
|
static size_t oidCpuTimeLen = sizeof(oidCpuTime);
|
||||||
|
long cpuTime[CPUSTATES];
|
||||||
|
- unsigned int cpuTimeLen = sizeof(cpuTime);
|
||||||
|
- static char *name = "kern.cp_time";
|
||||||
|
+ size_t cpuTimeLen = sizeof(cpuTime);
|
||||||
|
+ static const char *name = "kern.cp_time";
|
||||||
|
static int initialized = 0;
|
||||||
|
|
||||||
|
if (!initialized) {
|
||||||
|
@ -1,13 +1,6 @@
|
|||||||
Index: ksim/monitors/cpu/ksimcpu.cpp
|
--- ksim/monitors/cpu/ksimcpu.cpp.orig Mon May 13 10:47:51 2002
|
||||||
===================================================================
|
+++ ksim/monitors/cpu/ksimcpu.cpp Mon Mar 17 13:26:46 2003
|
||||||
RCS file: /home/kde/kdeutils/ksim/monitors/cpu/ksimcpu.cpp,v
|
@@ -42,8 +42,16 @@
|
||||||
retrieving revision 1.21
|
|
||||||
diff -u -5 -p -d -r1.21 ksimcpu.cpp
|
|
||||||
--- ksim/monitors/cpu/ksimcpu.cpp 13 May 2002 14:47:51 -0000 1.21
|
|
||||||
+++ ksim/monitors/cpu/ksimcpu.cpp 3 Mar 2003 07:38:33 -0000
|
|
||||||
@@ -40,12 +40,20 @@
|
|
||||||
#include <chart.h>
|
|
||||||
#include <progress.h>
|
|
||||||
#include <themetypes.h>
|
#include <themetypes.h>
|
||||||
|
|
||||||
#ifdef Q_OS_BSD4
|
#ifdef Q_OS_BSD4
|
||||||
@ -25,5 +18,14 @@ diff -u -5 -p -d -r1.21 ksimcpu.cpp
|
|||||||
#include <sys/sysctl.h>
|
#include <sys/sysctl.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <kvm.h>
|
#include <kvm.h>
|
||||||
#ifdef Q_OS_NETBSD
|
@@ -246,8 +254,8 @@
|
||||||
#include <sys/sched.h>
|
static int oidCpuTime[CTL_MAXNAME + 2];
|
||||||
|
static size_t oidCpuTimeLen = sizeof(oidCpuTime);
|
||||||
|
long cpuTime[CPUSTATES];
|
||||||
|
- unsigned int cpuTimeLen = sizeof(cpuTime);
|
||||||
|
- static char *name = "kern.cp_time";
|
||||||
|
+ size_t cpuTimeLen = sizeof(cpuTime);
|
||||||
|
+ static const char *name = "kern.cp_time";
|
||||||
|
static int initialized = 0;
|
||||||
|
|
||||||
|
if (!initialized) {
|
||||||
|
@ -1,13 +1,6 @@
|
|||||||
Index: ksim/monitors/cpu/ksimcpu.cpp
|
--- ksim/monitors/cpu/ksimcpu.cpp.orig Mon May 13 10:47:51 2002
|
||||||
===================================================================
|
+++ ksim/monitors/cpu/ksimcpu.cpp Mon Mar 17 13:26:46 2003
|
||||||
RCS file: /home/kde/kdeutils/ksim/monitors/cpu/ksimcpu.cpp,v
|
@@ -42,8 +42,16 @@
|
||||||
retrieving revision 1.21
|
|
||||||
diff -u -5 -p -d -r1.21 ksimcpu.cpp
|
|
||||||
--- ksim/monitors/cpu/ksimcpu.cpp 13 May 2002 14:47:51 -0000 1.21
|
|
||||||
+++ ksim/monitors/cpu/ksimcpu.cpp 3 Mar 2003 07:38:33 -0000
|
|
||||||
@@ -40,12 +40,20 @@
|
|
||||||
#include <chart.h>
|
|
||||||
#include <progress.h>
|
|
||||||
#include <themetypes.h>
|
#include <themetypes.h>
|
||||||
|
|
||||||
#ifdef Q_OS_BSD4
|
#ifdef Q_OS_BSD4
|
||||||
@ -25,5 +18,14 @@ diff -u -5 -p -d -r1.21 ksimcpu.cpp
|
|||||||
#include <sys/sysctl.h>
|
#include <sys/sysctl.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <kvm.h>
|
#include <kvm.h>
|
||||||
#ifdef Q_OS_NETBSD
|
@@ -246,8 +254,8 @@
|
||||||
#include <sys/sched.h>
|
static int oidCpuTime[CTL_MAXNAME + 2];
|
||||||
|
static size_t oidCpuTimeLen = sizeof(oidCpuTime);
|
||||||
|
long cpuTime[CPUSTATES];
|
||||||
|
- unsigned int cpuTimeLen = sizeof(cpuTime);
|
||||||
|
- static char *name = "kern.cp_time";
|
||||||
|
+ size_t cpuTimeLen = sizeof(cpuTime);
|
||||||
|
+ static const char *name = "kern.cp_time";
|
||||||
|
static int initialized = 0;
|
||||||
|
|
||||||
|
if (!initialized) {
|
||||||
|
@ -1,13 +1,6 @@
|
|||||||
Index: ksim/monitors/cpu/ksimcpu.cpp
|
--- ksim/monitors/cpu/ksimcpu.cpp.orig Mon May 13 10:47:51 2002
|
||||||
===================================================================
|
+++ ksim/monitors/cpu/ksimcpu.cpp Mon Mar 17 13:26:46 2003
|
||||||
RCS file: /home/kde/kdeutils/ksim/monitors/cpu/ksimcpu.cpp,v
|
@@ -42,8 +42,16 @@
|
||||||
retrieving revision 1.21
|
|
||||||
diff -u -5 -p -d -r1.21 ksimcpu.cpp
|
|
||||||
--- ksim/monitors/cpu/ksimcpu.cpp 13 May 2002 14:47:51 -0000 1.21
|
|
||||||
+++ ksim/monitors/cpu/ksimcpu.cpp 3 Mar 2003 07:38:33 -0000
|
|
||||||
@@ -40,12 +40,20 @@
|
|
||||||
#include <chart.h>
|
|
||||||
#include <progress.h>
|
|
||||||
#include <themetypes.h>
|
#include <themetypes.h>
|
||||||
|
|
||||||
#ifdef Q_OS_BSD4
|
#ifdef Q_OS_BSD4
|
||||||
@ -25,5 +18,14 @@ diff -u -5 -p -d -r1.21 ksimcpu.cpp
|
|||||||
#include <sys/sysctl.h>
|
#include <sys/sysctl.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <kvm.h>
|
#include <kvm.h>
|
||||||
#ifdef Q_OS_NETBSD
|
@@ -246,8 +254,8 @@
|
||||||
#include <sys/sched.h>
|
static int oidCpuTime[CTL_MAXNAME + 2];
|
||||||
|
static size_t oidCpuTimeLen = sizeof(oidCpuTime);
|
||||||
|
long cpuTime[CPUSTATES];
|
||||||
|
- unsigned int cpuTimeLen = sizeof(cpuTime);
|
||||||
|
- static char *name = "kern.cp_time";
|
||||||
|
+ size_t cpuTimeLen = sizeof(cpuTime);
|
||||||
|
+ static const char *name = "kern.cp_time";
|
||||||
|
static int initialized = 0;
|
||||||
|
|
||||||
|
if (!initialized) {
|
||||||
|
@ -1,13 +1,6 @@
|
|||||||
Index: ksim/monitors/cpu/ksimcpu.cpp
|
--- ksim/monitors/cpu/ksimcpu.cpp.orig Mon May 13 10:47:51 2002
|
||||||
===================================================================
|
+++ ksim/monitors/cpu/ksimcpu.cpp Mon Mar 17 13:26:46 2003
|
||||||
RCS file: /home/kde/kdeutils/ksim/monitors/cpu/ksimcpu.cpp,v
|
@@ -42,8 +42,16 @@
|
||||||
retrieving revision 1.21
|
|
||||||
diff -u -5 -p -d -r1.21 ksimcpu.cpp
|
|
||||||
--- ksim/monitors/cpu/ksimcpu.cpp 13 May 2002 14:47:51 -0000 1.21
|
|
||||||
+++ ksim/monitors/cpu/ksimcpu.cpp 3 Mar 2003 07:38:33 -0000
|
|
||||||
@@ -40,12 +40,20 @@
|
|
||||||
#include <chart.h>
|
|
||||||
#include <progress.h>
|
|
||||||
#include <themetypes.h>
|
#include <themetypes.h>
|
||||||
|
|
||||||
#ifdef Q_OS_BSD4
|
#ifdef Q_OS_BSD4
|
||||||
@ -25,5 +18,14 @@ diff -u -5 -p -d -r1.21 ksimcpu.cpp
|
|||||||
#include <sys/sysctl.h>
|
#include <sys/sysctl.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <kvm.h>
|
#include <kvm.h>
|
||||||
#ifdef Q_OS_NETBSD
|
@@ -246,8 +254,8 @@
|
||||||
#include <sys/sched.h>
|
static int oidCpuTime[CTL_MAXNAME + 2];
|
||||||
|
static size_t oidCpuTimeLen = sizeof(oidCpuTime);
|
||||||
|
long cpuTime[CPUSTATES];
|
||||||
|
- unsigned int cpuTimeLen = sizeof(cpuTime);
|
||||||
|
- static char *name = "kern.cp_time";
|
||||||
|
+ size_t cpuTimeLen = sizeof(cpuTime);
|
||||||
|
+ static const char *name = "kern.cp_time";
|
||||||
|
static int initialized = 0;
|
||||||
|
|
||||||
|
if (!initialized) {
|
||||||
|
@ -1,13 +1,6 @@
|
|||||||
Index: ksim/monitors/cpu/ksimcpu.cpp
|
--- ksim/monitors/cpu/ksimcpu.cpp.orig Mon May 13 10:47:51 2002
|
||||||
===================================================================
|
+++ ksim/monitors/cpu/ksimcpu.cpp Mon Mar 17 13:26:46 2003
|
||||||
RCS file: /home/kde/kdeutils/ksim/monitors/cpu/ksimcpu.cpp,v
|
@@ -42,8 +42,16 @@
|
||||||
retrieving revision 1.21
|
|
||||||
diff -u -5 -p -d -r1.21 ksimcpu.cpp
|
|
||||||
--- ksim/monitors/cpu/ksimcpu.cpp 13 May 2002 14:47:51 -0000 1.21
|
|
||||||
+++ ksim/monitors/cpu/ksimcpu.cpp 3 Mar 2003 07:38:33 -0000
|
|
||||||
@@ -40,12 +40,20 @@
|
|
||||||
#include <chart.h>
|
|
||||||
#include <progress.h>
|
|
||||||
#include <themetypes.h>
|
#include <themetypes.h>
|
||||||
|
|
||||||
#ifdef Q_OS_BSD4
|
#ifdef Q_OS_BSD4
|
||||||
@ -25,5 +18,14 @@ diff -u -5 -p -d -r1.21 ksimcpu.cpp
|
|||||||
#include <sys/sysctl.h>
|
#include <sys/sysctl.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <kvm.h>
|
#include <kvm.h>
|
||||||
#ifdef Q_OS_NETBSD
|
@@ -246,8 +254,8 @@
|
||||||
#include <sys/sched.h>
|
static int oidCpuTime[CTL_MAXNAME + 2];
|
||||||
|
static size_t oidCpuTimeLen = sizeof(oidCpuTime);
|
||||||
|
long cpuTime[CPUSTATES];
|
||||||
|
- unsigned int cpuTimeLen = sizeof(cpuTime);
|
||||||
|
- static char *name = "kern.cp_time";
|
||||||
|
+ size_t cpuTimeLen = sizeof(cpuTime);
|
||||||
|
+ static const char *name = "kern.cp_time";
|
||||||
|
static int initialized = 0;
|
||||||
|
|
||||||
|
if (!initialized) {
|
||||||
|
@ -1,13 +1,6 @@
|
|||||||
Index: ksim/monitors/cpu/ksimcpu.cpp
|
--- ksim/monitors/cpu/ksimcpu.cpp.orig Mon May 13 10:47:51 2002
|
||||||
===================================================================
|
+++ ksim/monitors/cpu/ksimcpu.cpp Mon Mar 17 13:26:46 2003
|
||||||
RCS file: /home/kde/kdeutils/ksim/monitors/cpu/ksimcpu.cpp,v
|
@@ -42,8 +42,16 @@
|
||||||
retrieving revision 1.21
|
|
||||||
diff -u -5 -p -d -r1.21 ksimcpu.cpp
|
|
||||||
--- ksim/monitors/cpu/ksimcpu.cpp 13 May 2002 14:47:51 -0000 1.21
|
|
||||||
+++ ksim/monitors/cpu/ksimcpu.cpp 3 Mar 2003 07:38:33 -0000
|
|
||||||
@@ -40,12 +40,20 @@
|
|
||||||
#include <chart.h>
|
|
||||||
#include <progress.h>
|
|
||||||
#include <themetypes.h>
|
#include <themetypes.h>
|
||||||
|
|
||||||
#ifdef Q_OS_BSD4
|
#ifdef Q_OS_BSD4
|
||||||
@ -25,5 +18,14 @@ diff -u -5 -p -d -r1.21 ksimcpu.cpp
|
|||||||
#include <sys/sysctl.h>
|
#include <sys/sysctl.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <kvm.h>
|
#include <kvm.h>
|
||||||
#ifdef Q_OS_NETBSD
|
@@ -246,8 +254,8 @@
|
||||||
#include <sys/sched.h>
|
static int oidCpuTime[CTL_MAXNAME + 2];
|
||||||
|
static size_t oidCpuTimeLen = sizeof(oidCpuTime);
|
||||||
|
long cpuTime[CPUSTATES];
|
||||||
|
- unsigned int cpuTimeLen = sizeof(cpuTime);
|
||||||
|
- static char *name = "kern.cp_time";
|
||||||
|
+ size_t cpuTimeLen = sizeof(cpuTime);
|
||||||
|
+ static const char *name = "kern.cp_time";
|
||||||
|
static int initialized = 0;
|
||||||
|
|
||||||
|
if (!initialized) {
|
||||||
|
@ -1,13 +1,6 @@
|
|||||||
Index: ksim/monitors/cpu/ksimcpu.cpp
|
--- ksim/monitors/cpu/ksimcpu.cpp.orig Mon May 13 10:47:51 2002
|
||||||
===================================================================
|
+++ ksim/monitors/cpu/ksimcpu.cpp Mon Mar 17 13:26:46 2003
|
||||||
RCS file: /home/kde/kdeutils/ksim/monitors/cpu/ksimcpu.cpp,v
|
@@ -42,8 +42,16 @@
|
||||||
retrieving revision 1.21
|
|
||||||
diff -u -5 -p -d -r1.21 ksimcpu.cpp
|
|
||||||
--- ksim/monitors/cpu/ksimcpu.cpp 13 May 2002 14:47:51 -0000 1.21
|
|
||||||
+++ ksim/monitors/cpu/ksimcpu.cpp 3 Mar 2003 07:38:33 -0000
|
|
||||||
@@ -40,12 +40,20 @@
|
|
||||||
#include <chart.h>
|
|
||||||
#include <progress.h>
|
|
||||||
#include <themetypes.h>
|
#include <themetypes.h>
|
||||||
|
|
||||||
#ifdef Q_OS_BSD4
|
#ifdef Q_OS_BSD4
|
||||||
@ -25,5 +18,14 @@ diff -u -5 -p -d -r1.21 ksimcpu.cpp
|
|||||||
#include <sys/sysctl.h>
|
#include <sys/sysctl.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <kvm.h>
|
#include <kvm.h>
|
||||||
#ifdef Q_OS_NETBSD
|
@@ -246,8 +254,8 @@
|
||||||
#include <sys/sched.h>
|
static int oidCpuTime[CTL_MAXNAME + 2];
|
||||||
|
static size_t oidCpuTimeLen = sizeof(oidCpuTime);
|
||||||
|
long cpuTime[CPUSTATES];
|
||||||
|
- unsigned int cpuTimeLen = sizeof(cpuTime);
|
||||||
|
- static char *name = "kern.cp_time";
|
||||||
|
+ size_t cpuTimeLen = sizeof(cpuTime);
|
||||||
|
+ static const char *name = "kern.cp_time";
|
||||||
|
static int initialized = 0;
|
||||||
|
|
||||||
|
if (!initialized) {
|
||||||
|
@ -1,13 +1,6 @@
|
|||||||
Index: ksim/monitors/cpu/ksimcpu.cpp
|
--- ksim/monitors/cpu/ksimcpu.cpp.orig Mon May 13 10:47:51 2002
|
||||||
===================================================================
|
+++ ksim/monitors/cpu/ksimcpu.cpp Mon Mar 17 13:26:46 2003
|
||||||
RCS file: /home/kde/kdeutils/ksim/monitors/cpu/ksimcpu.cpp,v
|
@@ -42,8 +42,16 @@
|
||||||
retrieving revision 1.21
|
|
||||||
diff -u -5 -p -d -r1.21 ksimcpu.cpp
|
|
||||||
--- ksim/monitors/cpu/ksimcpu.cpp 13 May 2002 14:47:51 -0000 1.21
|
|
||||||
+++ ksim/monitors/cpu/ksimcpu.cpp 3 Mar 2003 07:38:33 -0000
|
|
||||||
@@ -40,12 +40,20 @@
|
|
||||||
#include <chart.h>
|
|
||||||
#include <progress.h>
|
|
||||||
#include <themetypes.h>
|
#include <themetypes.h>
|
||||||
|
|
||||||
#ifdef Q_OS_BSD4
|
#ifdef Q_OS_BSD4
|
||||||
@ -25,5 +18,14 @@ diff -u -5 -p -d -r1.21 ksimcpu.cpp
|
|||||||
#include <sys/sysctl.h>
|
#include <sys/sysctl.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <kvm.h>
|
#include <kvm.h>
|
||||||
#ifdef Q_OS_NETBSD
|
@@ -246,8 +254,8 @@
|
||||||
#include <sys/sched.h>
|
static int oidCpuTime[CTL_MAXNAME + 2];
|
||||||
|
static size_t oidCpuTimeLen = sizeof(oidCpuTime);
|
||||||
|
long cpuTime[CPUSTATES];
|
||||||
|
- unsigned int cpuTimeLen = sizeof(cpuTime);
|
||||||
|
- static char *name = "kern.cp_time";
|
||||||
|
+ size_t cpuTimeLen = sizeof(cpuTime);
|
||||||
|
+ static const char *name = "kern.cp_time";
|
||||||
|
static int initialized = 0;
|
||||||
|
|
||||||
|
if (!initialized) {
|
||||||
|
Loading…
Reference in New Issue
Block a user