diff options
Diffstat (limited to 'src/sys_posix.c')
| -rw-r--r-- | src/sys_posix.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/sys_posix.c b/src/sys_posix.c index ba171b0..92f2d42 100644 --- a/src/sys_posix.c +++ b/src/sys_posix.c @@ -156,8 +156,8 @@ pid_t sys_spawn(const spawn_req *rq) { } posix_spawnattr_setflags(&attr, flags); } - rc = posix_spawn(&pid, rq->path, need_fa ? &fa : NULL, - need_attr ? &attr : NULL, rq->argv, rq->envp); + rc = posix_spawn(&pid, rq->path, need_fa ? &fa : nullptr, + need_attr ? &attr : nullptr, rq->argv, rq->envp); if (need_fa) posix_spawn_file_actions_destroy(&fa); if (need_attr) @@ -285,11 +285,11 @@ int sys_tag_set(const char *path, const char *codeset, int text) { /** * @brief System facts. None of the z/OS ones exist here. - * @return NULL: the ZOS_* variables are not defined on this platform. + * @return nullptr: the ZOS_* variables are not defined on this platform. */ const char *sys_info(sys_info_kind kind) { (void)kind; - return NULL; + return nullptr; } /* @@ -455,11 +455,11 @@ static int stub_iggcsi00(csi_area *a, void *ctx) { /** * @brief Open the test catalog. - * @return The file, or NULL if there is none. + * @return The file, or nullptr if there is none. */ static FILE *test_catalog(void) { const char *path = getenv("ZASH_TEST_CATALOG"); - return path ? fopen(path, "r") : NULL; + return path ? fopen(path, "r") : nullptr; } /** @@ -467,7 +467,7 @@ static FILE *test_catalog(void) { * @return true if a test catalog is named. */ bool sys_has_catalog(void) { - return getenv("ZASH_TEST_CATALOG") != NULL; + return getenv("ZASH_TEST_CATALOG") != nullptr; } /** @brief Work area size for the stand-in: small, to force resumes. */ |
