From fed3181c72344007399f7f7bf505902aca314859 Mon Sep 17 00:00:00 2001
From: rswindell <>
Date: Wed, 16 Nov 2016 05:32:50 +0000
Subject: [PATCH] Changed SMB_MSG_TYPE_VOTE to SMB_MSG_TYPE_BALLOT: There (will
 be) the possibilty to cast mutliple votes in a single vote-msg (ballot), when
 multi-choice polls are introduced later. There were just too many things call
 vote/votes and it was getting confusing in my own head. So the msg type for
 messages that contain votes is now "ballot".

---
 src/sbbs3/chksmb.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/sbbs3/chksmb.c b/src/sbbs3/chksmb.c
index a6e95edff3..7d024d4963 100644
--- a/src/sbbs3/chksmb.c
+++ b/src/sbbs3/chksmb.c
@@ -430,7 +430,7 @@ int main(int argc, char **argv)
 							"index import date/time\n");
 					timeerr++; 
 				}
-				if(msg.hdr.type != SMB_MSG_TYPE_VOTE
+				if(msg.hdr.type != SMB_MSG_TYPE_BALLOT
 					&& msg.idx.subj!=smb_subject_crc(msg.subj)) {
 					fprintf(stderr,"%sSubject CRC mismatch\n",beep);
 					msgerr=TRUE;
@@ -452,7 +452,7 @@ int main(int argc, char **argv)
 					fromcrc++; 
 				}
 				if(!(smb.status.attr&SMB_EMAIL) 
-					&& msg.hdr.type != SMB_MSG_TYPE_VOTE
+					&& msg.hdr.type != SMB_MSG_TYPE_BALLOT
 					&& msg.idx.from!=smb_name_crc(msg.from)) {
 					fprintf(stderr,"%sFrom CRC mismatch\n",beep);
 					msgerr=TRUE;
@@ -474,7 +474,7 @@ int main(int argc, char **argv)
 					tocrc++; 
 				}
 				if(!(smb.status.attr&SMB_EMAIL) 
-					&& msg.hdr.type != SMB_MSG_TYPE_VOTE
+					&& msg.hdr.type != SMB_MSG_TYPE_BALLOT
 					&& msg.to_ext==NULL && msg.idx.to!=smb_name_crc(msg.to)) {
 					fprintf(stderr,"%sTo CRC mismatch\n",beep);
 					msgerr=TRUE;
-- 
GitLab