From 2afc8bbbe4f529c5847cfbe1757e55c47e4656fe Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Thu, 30 Jan 2020 20:17:35 +0900 Subject: Removed explicit usage of the 'register' keyword. Signed-off-by: Michele Calgaro (cherry picked from commit 8250c8e42310cb39ceb6ae425bc8546208733e99) --- ksysguard/ksysguardd/FreeBSD/CPU.c | 12 ++++++------ ksysguard/ksysguardd/Irix/NetDev.c | 2 +- ksysguard/ksysguardd/Irix/ProcessList.c | 2 +- ksysguard/ksysguardd/Irix/cpu.c | 12 ++++++------ ksysguard/ksysguardd/OpenBSD/cpu.c | 12 ++++++------ 5 files changed, 20 insertions(+), 20 deletions(-) (limited to 'ksysguard/ksysguardd') 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 */ -- cgit v1.2.1