diff options
author | iphydf <iphydf@users.noreply.github.com> | 2018-01-28 21:30:39 +0000 |
---|---|---|
committer | iphydf <iphydf@users.noreply.github.com> | 2018-01-30 23:35:50 +0000 |
commit | 92ffad1a72bc8c422426d52ac408bd71242dd047 (patch) | |
tree | f592f353068dd2043525dd2cc04d6124a4ed4bc4 /other/fun | |
parent | 623e9ac331df7323660e21c8a2226523a5ee713b (diff) |
Use nullptr as NULL pointer constant instead of NULL or 0.
This changes only code, no string literals or comments.
Diffstat (limited to 'other/fun')
-rw-r--r-- | other/fun/sign.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/other/fun/sign.c b/other/fun/sign.c index 0cd8f38e..b24cdae7 100644 --- a/other/fun/sign.c +++ b/other/fun/sign.c | |||
@@ -24,8 +24,8 @@ int load_file(char *filename, char **result) | |||
24 | int size = 0; | 24 | int size = 0; |
25 | FILE *f = fopen(filename, "rb"); | 25 | FILE *f = fopen(filename, "rb"); |
26 | 26 | ||
27 | if (f == NULL) { | 27 | if (f == nullptr) { |
28 | *result = NULL; | 28 | *result = nullptr; |
29 | return -1; // -1 means file opening fail | 29 | return -1; // -1 means file opening fail |
30 | } | 30 | } |
31 | 31 | ||
@@ -88,7 +88,7 @@ int main(int argc, char *argv[]) | |||
88 | 88 | ||
89 | FILE *f = fopen(argv[4], "wb"); | 89 | FILE *f = fopen(argv[4], "wb"); |
90 | 90 | ||
91 | if (f == NULL) { | 91 | if (f == nullptr) { |
92 | goto fail; | 92 | goto fail; |
93 | } | 93 | } |
94 | 94 | ||