summaryrefslogtreecommitdiff
path: root/src/rm.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/rm.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/rm.c')
-rw-r--r--src/rm.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/rm.c b/src/rm.c
index 5368ac73e..bcf28a4b9 100644
--- a/src/rm.c
+++ b/src/rm.c
@@ -78,11 +78,11 @@ static int stdin_tty;
static struct option const long_opts[] =
{
- {"directory", 0, &unlink_dirs, 1},
- {"force", 0, NULL, 'f'},
- {"interactive", 0, NULL, 'i'},
- {"recursive", 0, &recursive, 1},
- {"verbose", 0, &verbose, 1},
+ {"directory", no_argument, &unlink_dirs, 1},
+ {"force", no_argument, NULL, 'f'},
+ {"interactive", no_argument, NULL, 'i'},
+ {"recursive", no_argument, &recursive, 1},
+ {"verbose", no_argument, &verbose, 1},
{NULL, 0, NULL, 0}
};