Skip to content

Commit

Permalink
refactor: use <cstdio> over stdio.h
Browse files Browse the repository at this point in the history
We currently use both. Consolidate on the former.
  • Loading branch information
fanquake committed Sep 21, 2022
1 parent 4e15a28 commit b956331
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/bitcoin-tx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/httpserver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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>

Expand Down
2 changes: 1 addition & 1 deletion src/ipc/interfaces.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion src/qt/utilitydialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#include <util/system.h>
#include <util/strencodings.h>

#include <stdio.h>
#include <cstdio>

#include <QCloseEvent>
#include <QLabel>
Expand Down
2 changes: 1 addition & 1 deletion src/streams.h
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit b956331

Please sign in to comment.