aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorfanquake <fanquake@gmail.com>2022-09-20 11:21:33 +0100
committerfanquake <fanquake@gmail.com>2022-09-21 16:53:11 +0100
commitb95633121bf32587fb24d22e5f26ddffb51cd7f7 (patch)
tree189645ce7549459dd360be441e31fac166801376 /src
parent4e15a288c3aa34700c511cd701cfc2238f48ba5b (diff)
refactor: use <cstdio> over stdio.h
We currently use both. Consolidate on the former.
Diffstat (limited to 'src')
-rw-r--r--src/bitcoin-tx.cpp2
-rw-r--r--src/httpserver.cpp2
-rw-r--r--src/ipc/interfaces.cpp2
-rw-r--r--src/qt/utilitydialog.cpp2
-rw-r--r--src/streams.h2
5 files changed, 5 insertions, 5 deletions
diff --git a/src/bitcoin-tx.cpp b/src/bitcoin-tx.cpp
index d49dc72abf..010cac5920 100644
--- a/src/bitcoin-tx.cpp
+++ b/src/bitcoin-tx.cpp
@@ -27,9 +27,9 @@
#include <util/system.h>
#include <util/translation.h>
+#include <cstdio>
#include <functional>
#include <memory>
-#include <stdio.h>
static bool fCreateBlank;
static std::map<std::string,UniValue> registers;
diff --git a/src/httpserver.cpp b/src/httpserver.cpp
index e68436cc2c..19caefe400 100644
--- a/src/httpserver.cpp
+++ b/src/httpserver.cpp
@@ -21,10 +21,10 @@
#include <util/threadnames.h>
#include <util/translation.h>
+#include <cstdio>
#include <deque>
#include <memory>
#include <optional>
-#include <stdio.h>
#include <stdlib.h>
#include <string>
diff --git a/src/ipc/interfaces.cpp b/src/ipc/interfaces.cpp
index 580590fde9..f4115db982 100644
--- a/src/ipc/interfaces.cpp
+++ b/src/ipc/interfaces.cpp
@@ -12,10 +12,10 @@
#include <tinyformat.h>
#include <util/system.h>
+#include <cstdio>
#include <functional>
#include <memory>
#include <stdexcept>
-#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <string>
diff --git a/src/qt/utilitydialog.cpp b/src/qt/utilitydialog.cpp
index 4894cac905..331487b51d 100644
--- a/src/qt/utilitydialog.cpp
+++ b/src/qt/utilitydialog.cpp
@@ -17,7 +17,7 @@
#include <util/system.h>
#include <util/strencodings.h>
-#include <stdio.h>
+#include <cstdio>
#include <QCloseEvent>
#include <QLabel>
diff --git a/src/streams.h b/src/streams.h
index f14d347380..24778ab331 100644
--- a/src/streams.h
+++ b/src/streams.h
@@ -13,11 +13,11 @@
#include <algorithm>
#include <assert.h>
+#include <cstdio>
#include <ios>
#include <limits>
#include <optional>
#include <stdint.h>
-#include <stdio.h>
#include <string.h>
#include <string>
#include <utility>