summaryrefslogtreecommitdiff
path: root/src/touch.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1992-12-02 18:55:36 +0000
committerJim Meyering <jim@meyering.net>1992-12-02 18:55:36 +0000
commit57e56eb7ecaf708b248af8faebd972a0ce6f03c1 (patch)
treec3f0b50cb23033a9f68ae740fc6b41549eb46cc7 /src/touch.c
parentf6ae65319a4e34bb6aebdc8dd4b12e9df136d690 (diff)
downloadcoreutils-57e56eb7ecaf708b248af8faebd972a0ce6f03c1.tar.xz
Convert static declarations of struct option to use new macros from
getopt.h: no_argument, required_argument, and optional_argument.
Diffstat (limited to 'src/touch.c')
-rw-r--r--src/touch.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/touch.c b/src/touch.c
index f3848ed80..65d76279f 100644
--- a/src/touch.c
+++ b/src/touch.c
@@ -95,10 +95,10 @@ char *program_name;
static struct option const longopts[] =
{
- {"time", 1, 0, 130},
- {"no-create", 0, 0, 'c'},
- {"date", 1, 0, 'd'},
- {"file", 1, 0, 'r'},
+ {"time", required_argument, 0, 130},
+ {"no-create", no_argument, 0, 'c'},
+ {"date", required_argument, 0, 'd'},
+ {"file", required_argument, 0, 'r'},
{0, 0, 0, 0}
};