From 44d6af73fa1dcfd04b8153433da5280387e2f98d Mon Sep 17 00:00:00 2001 From: Matt Strapp Date: Mon, 25 Apr 2022 18:10:23 -0500 Subject: more Signed-off-by: Matt Strapp --- include/util.hpp | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) (limited to 'include/util.hpp') 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; } -- cgit v1.2.3