Skip to content

Commit 4e9f306

Browse files
authored
use nullptr
1 parent cca60bb commit 4e9f306

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler-rt/lib/fuzzer/FuzzerUtilPosix.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,11 +109,11 @@ void SetTimer(int Seconds) {
109109
{Seconds, 0}, { Seconds, 0 }
110110
};
111111
SetSigaction(SIGALRM, AlarmHandler);
112-
if (timer_create(CLOCK_REALTIME, NULL, &timerid) == -1) {
112+
if (timer_create(CLOCK_REALTIME, nullptr, &timerid) == -1) {
113113
Printf("libFuzzer: timer_create failed with %d\n", errno);
114114
exit(1);
115115
}
116-
if (timer_settime(timerid, 0, &T, NULL) == -1) {
116+
if (timer_settime(timerid, 0, &T, nullptr) == -1) {
117117
Printf("libFuzzer: timer_settime failed with %d\n", errno);
118118
exit(1);
119119
}

0 commit comments

Comments
 (0)