aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMatt Strapp <matt@mattstrapp.net>2022-04-25 18:10:23 -0500
committerMatt Strapp <matt@mattstrapp.net>2022-04-25 18:10:23 -0500
commit44d6af73fa1dcfd04b8153433da5280387e2f98d (patch)
tree408e025d415421b5318e442fad64ef4ccaa979b5 /include
parentA (diff)
downloadcsci4211-44d6af73fa1dcfd04b8153433da5280387e2f98d.tar
csci4211-44d6af73fa1dcfd04b8153433da5280387e2f98d.tar.gz
csci4211-44d6af73fa1dcfd04b8153433da5280387e2f98d.tar.bz2
csci4211-44d6af73fa1dcfd04b8153433da5280387e2f98d.tar.lz
csci4211-44d6af73fa1dcfd04b8153433da5280387e2f98d.tar.xz
csci4211-44d6af73fa1dcfd04b8153433da5280387e2f98d.tar.zst
csci4211-44d6af73fa1dcfd04b8153433da5280387e2f98d.zip
more
Signed-off-by: Matt Strapp <matt@mattstrapp.net>
Diffstat (limited to 'include')
-rw-r--r--include/server.hpp2
-rw-r--r--include/util.hpp17
2 files changed, 9 insertions, 10 deletions
diff --git a/include/server.hpp b/include/server.hpp
index ab77ad8..f660514 100644
--- a/include/server.hpp
+++ b/include/server.hpp
@@ -22,6 +22,6 @@ void sendMessageToName(char *name, Header header, char *message);
void prepareMessage(int i, Header header, char *message);
void printServerCommand(int i);
-void DoServer(int svrPort);
+void DoServer(int port);
#endif
diff --git a/include/util.hpp b/include/util.hpp
index 10887df..51783a1 100644
--- a/include/util.hpp
+++ b/include/util.hpp
@@ -82,7 +82,6 @@ bool loginQuery(const char *database, char *username, char *password);
bool usernameQuery(const char *database, char *username);
void recordEntry(const char *database, char *key, char *value);
-void clearDatabase(const char *database);
int buf2file(BYTE *buf, int nbytes, char *filename);
int file2buf(char *filename, BYTE *buf);
@@ -117,19 +116,19 @@ public:
void displayContents(bool tab); // helper to print contents of class
};
-inline bool operator==(const Header &lfs, const Header &rhs) {
+inline bool operator==(const Header &lhs, const Header &rhs) {
bool result = true;
- result &= lfs.m_direction == rhs.m_direction;
- result &= lfs.m_flag == rhs.m_flag;
- result &= lfs.m_recipient == rhs.m_recipient;
- result &= lfs.m_trace == rhs.m_trace;
- result &= lfs.m_command == rhs.m_command;
+ result &= lhs.m_direction == rhs.m_direction;
+ result &= lhs.m_flag == rhs.m_flag;
+ result &= lhs.m_recipient == rhs.m_recipient;
+ result &= lhs.m_trace == rhs.m_trace;
+ result &= lhs.m_command == rhs.m_command;
for (int i = 0; i < MAX_USERNAME_LEN; i++)
- result &= lfs.m_name[i] == rhs.m_name[i];
+ result &= lhs.m_name[i] == rhs.m_name[i];
- result &= lfs.m_size == rhs.m_size;
+ result &= lhs.m_size == rhs.m_size;
return result;
}