From 034be93138a03a0e262e5651d8a07827323afab5 Mon Sep 17 00:00:00 2001
From: "Rob Swindell (on Debian Linux)" <rob@synchro.net>
Date: Sun, 19 Feb 2023 15:29:10 -0800
Subject: [PATCH] Resolve warnings as a result of last commit

More 'long int' purging.
---
 src/sbbs3/chat.cpp     | 2 +-
 src/sbbs3/readmail.cpp | 2 +-
 src/sbbs3/str.cpp      | 2 +-
 src/sbbs3/un_qwk.cpp   | 2 +-
 src/sbbs3/useredit.cpp | 6 +++---
 5 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/src/sbbs3/chat.cpp b/src/sbbs3/chat.cpp
index eeb4928bfa..41e7286ec5 100644
--- a/src/sbbs3/chat.cpp
+++ b/src/sbbs3/chat.cpp
@@ -1248,7 +1248,7 @@ int sbbs_t::getnodetopage(int all, int telegram)
 {
 	char	str[128];
 	char 	tmp[512];
-	uint 	i,j;
+	int 	i,j;
 	node_t	node;
 
 	if(!lastnodemsg)
diff --git a/src/sbbs3/readmail.cpp b/src/sbbs3/readmail.cpp
index 1d71df609b..489e38f825 100644
--- a/src/sbbs3/readmail.cpp
+++ b/src/sbbs3/readmail.cpp
@@ -47,7 +47,7 @@ void sbbs_t::readmail(uint usernumber, int which, int lm_mode)
 	int		i;
 	uint32_t u,v;
 	int		mismatches=0,act;
-	uint	unum;
+	int		unum;
     int    l,last_mode;
 	uint	last;
 	bool	replied;
diff --git a/src/sbbs3/str.cpp b/src/sbbs3/str.cpp
index 703a81fcfe..e57be2c1f5 100644
--- a/src/sbbs3/str.cpp
+++ b/src/sbbs3/str.cpp
@@ -33,7 +33,7 @@ void sbbs_t::userlist(int mode)
 	char *	line[2500];
 	user_t	user;
 
-	if(lastuser(&cfg)<=(sizeof(line)/sizeof(line[0])))
+	if(lastuser(&cfg)<=(int)(sizeof(line)/sizeof(line[0])))
 		sort=yesno(text[SortAlphaQ]);
 	if(sort) {
 		bputs(text[CheckingSlots]); 
diff --git a/src/sbbs3/un_qwk.cpp b/src/sbbs3/un_qwk.cpp
index 197cf6aac3..ac35974041 100644
--- a/src/sbbs3/un_qwk.cpp
+++ b/src/sbbs3/un_qwk.cpp
@@ -45,7 +45,7 @@ bool sbbs_t::unpack_qwk(char *packet,uint hubnum)
 	uchar	block[QWK_BLOCK_LEN];
 	int 	k,file;
 	uint	i,j,n,lastsub=INVALID_SUB;
-	uint	usernum;
+	int		usernum;
 	uint	blocks;
 	long	l,size,misc;
 	ulong	t;
diff --git a/src/sbbs3/useredit.cpp b/src/sbbs3/useredit.cpp
index e392573015..5bbbd9dbd1 100644
--- a/src/sbbs3/useredit.cpp
+++ b/src/sbbs3/useredit.cpp
@@ -41,10 +41,10 @@ void sbbs_t::useredit(int usernumber)
 	char 	tmp[512];
 	char	search[256]={""},artxt[128]={""};
 	uchar	*ar=NULL;
-	uint	i,j,k;
+	int		i,j,k;
 	float	f;
-	long	l;
-	long	kmode = K_LINE|K_EDIT|K_AUTODEL|K_TRIM;
+	int		l;
+	int		kmode = K_LINE|K_EDIT|K_AUTODEL|K_TRIM;
 	int64_t adj;
 	user_t	user;
 	struct	tm tm;
-- 
GitLab