summaryrefslogtreecommitdiffstats
path: root/dcop/KDE-ICE
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2020-01-30 20:17:34 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2020-01-30 23:14:04 +0900
commitaa98dbfe80580169f3df12489a77e8b904a1d9b9 (patch)
tree483608a6346be3fa4d8f95d35a05952c81221b91 /dcop/KDE-ICE
parentf29aa92d38e9e1f353ed48f7952150437db8c890 (diff)
downloadtdelibs-aa98dbfe80580169f3df12489a77e8b904a1d9b9.tar.gz
tdelibs-aa98dbfe80580169f3df12489a77e8b904a1d9b9.zip
Removed explicit usage of the 'register' keyword.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'dcop/KDE-ICE')
-rw-r--r--dcop/KDE-ICE/Xtrans.c4
-rw-r--r--dcop/KDE-ICE/iceauth.c4
-rw-r--r--dcop/KDE-ICE/misc.c16
3 files changed, 12 insertions, 12 deletions
diff --git a/dcop/KDE-ICE/Xtrans.c b/dcop/KDE-ICE/Xtrans.c
index b954d4b3b..e34574248 100644
--- a/dcop/KDE-ICE/Xtrans.c
+++ b/dcop/KDE-ICE/Xtrans.c
@@ -1261,7 +1261,7 @@ static int TRANS(ReadV) (XtransConnInfo ciptr, struct iovec *iov, int iovcnt)
len = iov->iov_len;
base = iov->iov_base;
while (len > 0) {
- register int nbytes;
+ int nbytes;
nbytes = TRANS(Read) (ciptr, base, len);
if (nbytes < 0 && total == 0) return -1;
if (nbytes <= 0) return total;
@@ -1293,7 +1293,7 @@ static int TRANS(WriteV) (XtransConnInfo ciptr, struct iovec *iov, int iovcnt)
len = iov->iov_len;
base = iov->iov_base;
while (len > 0) {
- register int nbytes;
+ int nbytes;
nbytes = TRANS(Write) (ciptr, base, len);
if (nbytes < 0 && total == 0) return -1;
if (nbytes <= 0) return total;
diff --git a/dcop/KDE-ICE/iceauth.c b/dcop/KDE-ICE/iceauth.c
index 72297ceb5..74db91367 100644
--- a/dcop/KDE-ICE/iceauth.c
+++ b/dcop/KDE-ICE/iceauth.c
@@ -45,7 +45,7 @@ extern Time_t time ();
#define Time_t time_t
#endif
-static int binaryEqual (register const char *a, register const char *b, register unsigned len);
+static int binaryEqual (register const char *a, const char *b, unsigned len);
static int was_called_state;
@@ -264,7 +264,7 @@ char **errorStringRet;
* local routines
*/
-static int binaryEqual (register const char *a, register const char *b, register unsigned len)
+static int binaryEqual (register const char *a, const char *b, unsigned len)
{
while (len--)
if (*a++ != *b++)
diff --git a/dcop/KDE-ICE/misc.c b/dcop/KDE-ICE/misc.c
index 0dbbf24b7..4658b8d14 100644
--- a/dcop/KDE-ICE/misc.c
+++ b/dcop/KDE-ICE/misc.c
@@ -233,12 +233,12 @@ IceConn iceConn;
Status
_IceRead (iceConn, nbytes, ptr)
-register IceConn iceConn;
+IceConn iceConn;
unsigned long nbytes;
-register char *ptr;
+char *ptr;
{
- register unsigned long nleft;
+ unsigned long nleft;
nleft = nbytes;
while (nleft > 0)
@@ -335,8 +335,8 @@ register char *ptr;
void
_IceReadSkip (iceConn, nbytes)
-register IceConn iceConn;
-register unsigned long nbytes;
+IceConn iceConn;
+unsigned long nbytes;
{
char temp[512];
@@ -359,12 +359,12 @@ register unsigned long nbytes;
void
_IceWrite (iceConn, nbytes, ptr)
-register IceConn iceConn;
+IceConn iceConn;
unsigned long nbytes;
-register char *ptr;
+char *ptr;
{
- register unsigned long nleft;
+ unsigned long nleft;
nleft = nbytes;
while (nleft > 0)