diff options
author | login (tilde.temm) <login@tilde.team> | 2020-02-21 23:33:26 -0500 |
---|---|---|
committer | login (tilde.temm) <login@tilde.team> | 2020-02-21 23:33:26 -0500 |
commit | f4e29c07930ba87ee5f266860623b56ece0bf470 (patch) | |
tree | d1f2f7fab818b1d6ef253e5282b81cd23d08d76c | |
parent | 61355a43749cb5507792482e64f45ad5883580dd (diff) | |
download | tcoin-f4e29c07930ba87ee5f266860623b56ece0bf470.tar.gz |
Made a minor mistake in pcoin.cpp regarding symbolic constant TCOIN_MSG_LENGTH_LIMIT
I made a switch from TCOIN_MSG_LENGTH to TCOIN_MSG_LENGTH_LIMIT for the symbolic constant representing the maximum number of characters of a transaction message. I changed all instances of the symbolic constant to this new name in tcoin.cpp, but forgot to do it in one instance in pcoin.cpp. This goes on to show that I need to develop tests for tcoin and pcoin, as well as start using getopt from util-linux for proper options handling.
-rw-r--r-- | pcoin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pcoin.cpp b/pcoin.cpp index a7d9baa..e1c2d5d 100644 --- a/pcoin.cpp +++ b/pcoin.cpp @@ -52,7 +52,7 @@ #define MINERCOIN_CMD_POST_USERNAME "\": )[[:digit:]]+' /home/minerobber/Code/minerbot/minercoin.json" #endif #define USERNAME_LENGTH_LIMIT 25 -#define TCOIN_MSG_LENGTH 280 +#define TCOIN_MSG_LENGTH_LIMIT 280 #define ERR_MAIN_SEND_TOO_FEW_ARGS 6 #define ERR_MAIN_SEND_TOO_MANY_ARGS 7 |