summaryrefslogtreecommitdiff
path: root/src/cp.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/cp.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/cp.c')
-rw-r--r--src/cp.c30
1 files changed, 15 insertions, 15 deletions
diff --git a/src/cp.c b/src/cp.c
index 916c52f92..c1415b790 100644
--- a/src/cp.c
+++ b/src/cp.c
@@ -119,21 +119,21 @@ static uid_t myeuid;
static struct option const long_opts[] =
{
- {"archive", 0, NULL, 'a'},
- {"backup", 0, NULL, 'b'},
- {"force", 0, NULL, 'f'},
- {"interactive", 0, NULL, 'i'},
- {"link", 0, NULL, 'l'},
- {"no-dereference", 0, &flag_dereference, 0},
- {"one-file-system", 0, &flag_one_file_system, 1},
- {"path", 0, &flag_path, 1},
- {"preserve", 0, &flag_preserve, 1},
- {"recursive", 0, NULL, 'R'},
- {"suffix", 1, NULL, 'S'},
- {"symbolic-link", 0, NULL, 's'},
- {"update", 0, &flag_update, 1},
- {"verbose", 0, &flag_verbose, 1},
- {"version-control", 1, NULL, 'V'},
+ {"archive", no_argument, NULL, 'a'},
+ {"backup", no_argument, NULL, 'b'},
+ {"force", no_argument, NULL, 'f'},
+ {"interactive", no_argument, NULL, 'i'},
+ {"link", no_argument, NULL, 'l'},
+ {"no-dereference", no_argument, &flag_dereference, 0},
+ {"one-file-system", no_argument, &flag_one_file_system, 1},
+ {"path", no_argument, &flag_path, 1},
+ {"preserve", no_argument, &flag_preserve, 1},
+ {"recursive", no_argument, NULL, 'R'},
+ {"suffix", required_argument, NULL, 'S'},
+ {"symbolic-link", no_argument, NULL, 's'},
+ {"update", no_argument, &flag_update, 1},
+ {"verbose", no_argument, &flag_verbose, 1},
+ {"version-control", required_argument, NULL, 'V'},
{NULL, 0, NULL, 0}
};