summaryrefslogtreecommitdiffstats
path: root/ktalkd
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2020-01-30 20:17:37 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2020-01-31 00:02:35 +0900
commitda681e86b1a185f6acb87e496d82c310095a7a6f (patch)
tree7c66b1b262a3c203551d1416180ba04a79445251 /ktalkd
parent9f27244d5ecb0c531c4e142fbb7c50a360343fb0 (diff)
downloadtdenetwork-da681e86b1a185f6acb87e496d82c310095a7a6f.tar.gz
tdenetwork-da681e86b1a185f6acb87e496d82c310095a7a6f.zip
Removed explicit usage of the 'register' keyword.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit d69788cef648d4307cbd9512ab8733eefbf0b7a7)
Diffstat (limited to 'ktalkd')
-rw-r--r--ktalkd/ktalkd/machines/forwmach.cpp2
-rw-r--r--ktalkd/ktalkd/table.cpp12
-rw-r--r--ktalkd/mail.local/mail.local.c4
3 files changed, 9 insertions, 9 deletions
diff --git a/ktalkd/ktalkd/machines/forwmach.cpp b/ktalkd/ktalkd/machines/forwmach.cpp
index bbd491eb..5bb5cd0d 100644
--- a/ktalkd/ktalkd/machines/forwmach.cpp
+++ b/ktalkd/ktalkd/machines/forwmach.cpp
@@ -117,7 +117,7 @@ ForwMachine::~ForwMachine()
* @param forward user@host to forward the talk */
int ForwMachine::getNames(char * forward)
{ /* taken from old get_names.c */
- register char *cp;
+ char *cp;
/* strip out the machine name of the target */
for (cp = forward; *cp && !strchr("@:!.", *cp); cp++)
diff --git a/ktalkd/ktalkd/table.cpp b/ktalkd/ktalkd/table.cpp
index 476267e8..8c629cf5 100644
--- a/ktalkd/ktalkd/table.cpp
+++ b/ktalkd/ktalkd/table.cpp
@@ -62,7 +62,7 @@
*/
NEW_CTL_MSG * KTalkdTable::find_match(NEW_CTL_MSG *request)
{
- register TABLE_ENTRY *ptr;
+ TABLE_ENTRY *ptr;
time_t current_time;
(void) gettimeofday(&tp, &txp);
@@ -92,7 +92,7 @@ NEW_CTL_MSG * KTalkdTable::find_match(NEW_CTL_MSG *request)
*/
NEW_CTL_MSG * KTalkdTable::find_request(NEW_CTL_MSG *request)
{
- register TABLE_ENTRY *ptr;
+ TABLE_ENTRY *ptr;
time_t current_time;
(void) gettimeofday(&tp, &txp);
@@ -124,7 +124,7 @@ NEW_CTL_MSG * KTalkdTable::find_request(NEW_CTL_MSG *request)
void KTalkdTable::insert_table(NEW_CTL_MSG *request, NEW_CTL_RESPONSE *response, ForwMachine * fwm)
{
- register TABLE_ENTRY *ptr;
+ TABLE_ENTRY *ptr;
time_t current_time;
gettimeofday(&tp, &txp);
@@ -167,7 +167,7 @@ int KTalkdTable::new_id()
*/
int KTalkdTable::delete_invite(uint32_t id_num)
{
- register TABLE_ENTRY *ptr;
+ TABLE_ENTRY *ptr;
ptr = table;
ktalk_debug("delete_invite(%d)", id_num);
@@ -189,7 +189,7 @@ int KTalkdTable::delete_invite(uint32_t id_num)
/*
* Classic delete from a double-linked list
*/
-void KTalkdTable::delete_entry(register TABLE_ENTRY *ptr)
+void KTalkdTable::delete_entry(TABLE_ENTRY *ptr)
{
if (table == ptr)
table = ptr->next;
@@ -202,7 +202,7 @@ void KTalkdTable::delete_entry(register TABLE_ENTRY *ptr)
KTalkdTable::~KTalkdTable()
{
- register TABLE_ENTRY *ptr;
+ TABLE_ENTRY *ptr;
ptr = table;
ktalk_debug("final_clean()");
for (ptr = table; ptr != 0L; ptr = ptr->next) {
diff --git a/ktalkd/mail.local/mail.local.c b/ktalkd/mail.local/mail.local.c
index c88351dd..fbf91957 100644
--- a/ktalkd/mail.local/mail.local.c
+++ b/ktalkd/mail.local/mail.local.c
@@ -920,10 +920,10 @@ mktemp(path)
static
_gettemp(path, doopen)
char *path;
- register int *doopen;
+ int *doopen;
{
extern int errno;
- register char *start, *trv;
+ char *start, *trv;
struct stat sbuf;
u_int pid;