summaryrefslogtreecommitdiffstats
path: root/ksysguard/ksysguardd
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2020-01-30 20:17:35 +0900
committerMichele Calgaro <[email protected]>2020-01-30 23:52:43 +0900
commit2afc8bbbe4f529c5847cfbe1757e55c47e4656fe (patch)
tree76a398670f2197f0682ccad3beff2875555af078 /ksysguard/ksysguardd
parent25a1c781481d9f53476251d1d2059643cf3ac67a (diff)
downloadtdebase-2afc8bbbe4f529c5847cfbe1757e55c47e4656fe.tar.gz
tdebase-2afc8bbbe4f529c5847cfbe1757e55c47e4656fe.zip
Removed explicit usage of the 'register' keyword.
Signed-off-by: Michele Calgaro <[email protected]> (cherry picked from commit 8250c8e42310cb39ceb6ae425bc8546208733e99)
Diffstat (limited to 'ksysguard/ksysguardd')
-rw-r--r--ksysguard/ksysguardd/FreeBSD/CPU.c12
-rw-r--r--ksysguard/ksysguardd/Irix/NetDev.c2
-rw-r--r--ksysguard/ksysguardd/Irix/ProcessList.c2
-rw-r--r--ksysguard/ksysguardd/Irix/cpu.c12
-rw-r--r--ksysguard/ksysguardd/OpenBSD/cpu.c12
5 files changed, 20 insertions, 20 deletions
diff --git a/ksysguard/ksysguardd/FreeBSD/CPU.c b/ksysguard/ksysguardd/FreeBSD/CPU.c
index 90d0c4721..0d83cd7f6 100644
--- a/ksysguard/ksysguardd/FreeBSD/CPU.c
+++ b/ksysguard/ksysguardd/FreeBSD/CPU.c
@@ -212,15 +212,15 @@ long percentages(cnt, out, new, old, diffs)
int cnt;
int *out;
-register long *new;
-register long *old;
+long *new;
+long *old;
long *diffs;
{
- register int i;
- register long change;
- register long total_change;
- register long *dp;
+ int i;
+ long change;
+ long total_change;
+ long *dp;
long half_total;
/* initialization */
diff --git a/ksysguard/ksysguardd/Irix/NetDev.c b/ksysguard/ksysguardd/Irix/NetDev.c
index 80bc2b310..403fea6cf 100644
--- a/ksysguard/ksysguardd/Irix/NetDev.c
+++ b/ksysguard/ksysguardd/Irix/NetDev.c
@@ -170,7 +170,7 @@ int updateNetDev(void)
struct ifstats *istat;
struct timeval tv;
static LONGLONG timestamp=0;
- register LONGLONG cts,elapsed;
+ LONGLONG cts,elapsed;
//struct ipstat ips;
if ((s=socket(PF_INET,SOCK_DGRAM,0)) < 0){
diff --git a/ksysguard/ksysguardd/Irix/ProcessList.c b/ksysguard/ksysguardd/Irix/ProcessList.c
index 5bc2230b0..cf95b2937 100644
--- a/ksysguard/ksysguardd/Irix/ProcessList.c
+++ b/ksysguard/ksysguardd/Irix/ProcessList.c
@@ -150,7 +150,7 @@ static int updateProcess( pid_t pid ) {
char buf[BUFSIZE];
prpsinfo_t psinfo;
struct passwd *pw;
- register double newCentStamp,timeDiff, usDiff,usTime;
+ double newCentStamp,timeDiff, usDiff,usTime;
struct timeval tv;
if( (ps = findProcessInList( pid )) == NULL ) {
diff --git a/ksysguard/ksysguardd/Irix/cpu.c b/ksysguard/ksysguardd/Irix/cpu.c
index 9fdd25ab7..7c013db37 100644
--- a/ksysguard/ksysguardd/Irix/cpu.c
+++ b/ksysguard/ksysguardd/Irix/cpu.c
@@ -212,15 +212,15 @@ long percentages(cnt, out, new, old, diffs)
int cnt;
int *out;
-register long *new;
-register long *old;
+long *new;
+long *old;
long *diffs;
{
- register int i;
- register long change;
- register long total_change;
- register long *dp;
+ int i;
+ long change;
+ long total_change;
+ long *dp;
long half_total;
/* initialization */
diff --git a/ksysguard/ksysguardd/OpenBSD/cpu.c b/ksysguard/ksysguardd/OpenBSD/cpu.c
index 2ecf1ed51..3aa097769 100644
--- a/ksysguard/ksysguardd/OpenBSD/cpu.c
+++ b/ksysguard/ksysguardd/OpenBSD/cpu.c
@@ -159,15 +159,15 @@ long percentages(cnt, out, new, old, diffs)
int cnt;
int *out;
-register long *new;
-register long *old;
+long *new;
+long *old;
long *diffs;
{
- register int i;
- register long change;
- register long total_change;
- register long *dp;
+ int i;
+ long change;
+ long total_change;
+ long *dp;
long half_total;
/* initialization */