diff options
author | Jim Meyering <jim@meyering.net> | 2005-03-28 18:13:40 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2005-03-28 18:13:40 +0000 |
commit | 5208f4b7ba5819531bfd935e2642c6d850d0756e (patch) | |
tree | 92b63c2b1157d1f58fb823d1ea763a358d6ebd3e /src | |
parent | b0f4666d0255ec33d17185352ad971e39502a307 (diff) | |
download | coreutils-5208f4b7ba5819531bfd935e2642c6d850d0756e.tar.xz |
(longopts, time_args): Use NULL, not `0'.
Diffstat (limited to 'src')
-rw-r--r-- | src/touch.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/touch.c b/src/touch.c index ff5a0cd0f..34ce8c433 100644 --- a/src/touch.c +++ b/src/touch.c @@ -77,20 +77,20 @@ enum static struct option const longopts[] = { - {"time", required_argument, 0, TIME_OPTION}, - {"no-create", no_argument, 0, 'c'}, - {"date", required_argument, 0, 'd'}, - {"file", required_argument, 0, 'r'}, /* FIXME: phase out --file */ - {"reference", required_argument, 0, 'r'}, + {"time", required_argument, NULL, TIME_OPTION}, + {"no-create", no_argument, NULL, 'c'}, + {"date", required_argument, NULL, 'd'}, + {"file", required_argument, NULL, 'r'}, /* FIXME: remove --file in 2006 */ + {"reference", required_argument, NULL, 'r'}, {GETOPT_HELP_OPTION_DECL}, {GETOPT_VERSION_OPTION_DECL}, - {0, 0, 0, 0} + {NULL, 0, NULL, 0} }; /* Valid arguments to the `--time' option. */ static char const* const time_args[] = { - "atime", "access", "use", "mtime", "modify", 0 + "atime", "access", "use", "mtime", "modify", NULL }; /* The bits in `change_times' that those arguments set. */ |