aboutsummaryrefslogtreecommitdiffstats
path: root/src/system.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/system.h')
-rw-r--r--src/system.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/system.h b/src/system.h
index b85897280..f184c4fdc 100644
--- a/src/system.h
+++ b/src/system.h
@@ -282,7 +282,7 @@ readdir_ignoring_dot_and_dotdot (DIR *dirp)
while (true)
{
struct dirent const *dp = readdir (dirp);
- if (dp == NULL || ! dot_or_dotdot (dp->d_name))
+ if (dp == nullptr || ! dot_or_dotdot (dp->d_name))
return dp;
}
}
@@ -310,7 +310,7 @@ directory_status (int fd_cwd, char const *dir)
return errno;
dirp = fdopendir (fd);
- if (dirp == NULL)
+ if (dirp == nullptr)
{
saved_errno = errno;
close (fd);
@@ -336,11 +336,11 @@ enum
};
#define GETOPT_HELP_OPTION_DECL \
- "help", no_argument, NULL, GETOPT_HELP_CHAR
+ "help", no_argument, nullptr, GETOPT_HELP_CHAR
#define GETOPT_VERSION_OPTION_DECL \
- "version", no_argument, NULL, GETOPT_VERSION_CHAR
+ "version", no_argument, nullptr, GETOPT_VERSION_CHAR
#define GETOPT_SELINUX_CONTEXT_OPTION_DECL \
- "context", optional_argument, NULL, 'Z'
+ "context", optional_argument, nullptr, 'Z'
#define case_GETOPT_HELP_CHAR \
case GETOPT_HELP_CHAR: \
@@ -380,7 +380,7 @@ enum
#define case_GETOPT_VERSION_CHAR(Program_name, Authors) \
case GETOPT_VERSION_CHAR: \
version_etc (stdout, Program_name, PACKAGE_NAME, Version, Authors, \
- (char *) NULL); \
+ (char *) nullptr); \
exit (EXIT_SUCCESS); \
break;
@@ -565,7 +565,7 @@ is_nul (void const *buf, size_t length)
#define DECIMAL_DIGIT_ACCUMULATE(Accum, Digit_val, Type) \
( \
- (void) (&(Accum) == (Type *) NULL), /* The type matches. */ \
+ (void) (&(Accum) == (Type *) nullptr), /* The type matches. */ \
verify_expr (! TYPE_SIGNED (Type), /* The type is unsigned. */ \
(((Type) -1 / 10 < (Accum) \
|| (Type) ((Accum) * 10 + (Digit_val)) < (Accum)) \
@@ -663,7 +663,7 @@ emit_ancillary_info (char const *program)
{ "sha256sum", "sha2 utilities" },
{ "sha384sum", "sha2 utilities" },
{ "sha512sum", "sha2 utilities" },
- { NULL, NULL }
+ { nullptr, nullptr }
};
char const *node = program;
@@ -679,7 +679,7 @@ emit_ancillary_info (char const *program)
/* Don't output this redundant message for English locales.
Note we still output for 'C' so that it gets included in the man page. */
- char const *lc_messages = setlocale (LC_MESSAGES, NULL);
+ char const *lc_messages = setlocale (LC_MESSAGES, nullptr);
if (lc_messages && STRNCMP_LIT (lc_messages, "en_"))
{
/* TRANSLATORS: Replace LANG_CODE in this URL with your language code