diff options
Diffstat (limited to 'src/printenv.c')
| -rw-r--r-- | src/printenv.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/printenv.c b/src/printenv.c index 5ac5964ef..54d52e9bf 100644 --- a/src/printenv.c +++ b/src/printenv.c @@ -46,10 +46,10 @@ enum { PRINTENV_FAILURE = 2 }; static struct option const longopts[] = { - {"null", no_argument, NULL, '0'}, + {"null", no_argument, nullptr, '0'}, {GETOPT_HELP_OPTION_DECL}, {GETOPT_VERSION_OPTION_DECL}, - {NULL, 0, NULL, 0} + {nullptr, 0, nullptr, 0} }; void @@ -96,7 +96,7 @@ main (int argc, char **argv) initialize_exit_failure (PRINTENV_FAILURE); atexit (close_stdout); - while ((optc = getopt_long (argc, argv, "+iu:0", longopts, NULL)) != -1) + while ((optc = getopt_long (argc, argv, "+iu:0", longopts, nullptr)) != -1) { switch (optc) { @@ -112,7 +112,7 @@ main (int argc, char **argv) if (optind >= argc) { - for (env = environ; *env != NULL; ++env) + for (env = environ; *env != nullptr; ++env) printf ("%s%c", *env, opt_nul_terminate_output ? '\0' : '\n'); ok = true; } |
