diff options
Diffstat (limited to 'src/truncate.c')
| -rw-r--r-- | src/truncate.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/truncate.c b/src/truncate.c index 4e50d4bf3..07c210ebb 100644 --- a/src/truncate.c +++ b/src/truncate.c @@ -48,13 +48,13 @@ static char const *ref_file; static struct option const longopts[] = { - {"no-create", no_argument, NULL, 'c'}, - {"io-blocks", no_argument, NULL, 'o'}, - {"reference", required_argument, NULL, 'r'}, - {"size", required_argument, NULL, 's'}, + {"no-create", no_argument, nullptr, 'c'}, + {"io-blocks", no_argument, nullptr, 'o'}, + {"reference", required_argument, nullptr, 'r'}, + {"size", required_argument, nullptr, 's'}, {GETOPT_HELP_OPTION_DECL}, {GETOPT_VERSION_OPTION_DECL}, - {NULL, 0, NULL, 0} + {nullptr, 0, nullptr, 0} }; typedef enum @@ -215,7 +215,7 @@ main (int argc, char **argv) atexit (close_stdout); - while ((c = getopt_long (argc, argv, "cor:s:", longopts, NULL)) != -1) + while ((c = getopt_long (argc, argv, "cor:s:", longopts, nullptr)) != -1) { switch (c) { |
