aboutsummaryrefslogtreecommitdiff
path: root/src/logging.h
diff options
context:
space:
mode:
authorpracticalswift <[email protected]>2018-05-02 11:25:20 +0200
committerpracticalswift <[email protected]>2018-05-02 11:25:20 +0200
commit0bd4cd398b19c2ef90e2f39b40a60b9fa915d2b2 (patch)
tree743f64037eafbe47552dc136af551a59b34d1604 /src/logging.h
parentlogging: Fix potential use-after-free in LogPrintStr(...) (diff)
downloaddiscoin-0bd4cd398b19c2ef90e2f39b40a60b9fa915d2b2.tar.xz
discoin-0bd4cd398b19c2ef90e2f39b40a60b9fa915d2b2.zip
logging: remove unused return value from LogPrintStr
`LogPrintStr` returns the number of characters printed. This number is doubled if both logging to console and logging to file is enabled. As the return value is never used, I've opted to remove it instead of try to fix it. Credit: @laanwj
Diffstat (limited to 'src/logging.h')
-rw-r--r--src/logging.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/logging.h b/src/logging.h
index 1f2be6016..6400b131c 100644
--- a/src/logging.h
+++ b/src/logging.h
@@ -86,7 +86,7 @@ namespace BCLog {
std::atomic<bool> m_reopen_file{false};
/** Send a string to the log output */
- int LogPrintStr(const std::string &str);
+ void LogPrintStr(const std::string &str);
/** Returns whether logs will be written to any output */
bool Enabled() const { return m_print_to_console || m_print_to_file; }