From 7dc24010d2332b5f639892db602a387bc6616277 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Thu, 7 Nov 2024 19:59:43 +0100 Subject: Prefer nullptr to NULL --- src/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.c b/src/main.c index 5f06910..2fe80fe 100644 --- a/src/main.c +++ b/src/main.c @@ -47,10 +47,10 @@ main(int argc, char **argv) /* TODO: Can we test this in an OpenBSD VM? */ #if 0 && defined(__OpenBSD__) #if GIT_GRAB - if (pledge("stdio rpath prot exec", NULL) == -1) + if (pledge("stdio rpath prot exec", nullptr) == -1) cerr(EXIT_FATAL, "pledge:"); #else - if (pledge("stdio rpath", NULL) == -1) + if (pledge("stdio rpath", nullptr) == -1) cerr(EXIT_FATAL, "pledge:"); #endif #endif -- cgit v1.2.3