summaryrefslogtreecommitdiff
path: root/src/ln.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/ln.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/ln.c')
-rw-r--r--src/ln.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/ln.c b/src/ln.c
index 008e595d8..ea8d3b2f3 100644
--- a/src/ln.c
+++ b/src/ln.c
@@ -65,14 +65,14 @@ char *program_name;
static struct option const long_options[] =
{
- {"backup", 0, NULL, 'b'},
- {"directory", 0, &hard_dir_link, 1},
- {"force", 0, NULL, 'f'},
- {"interactive", 0, NULL, 'i'},
- {"suffix", 1, NULL, 'S'},
- {"symbolic", 0, &symbolic_link, 1},
- {"verbose", 0, &verbose, 1},
- {"version-control", 1, NULL, 'V'},
+ {"backup", no_argument, NULL, 'b'},
+ {"directory", no_argument, &hard_dir_link, 1},
+ {"force", no_argument, NULL, 'f'},
+ {"interactive", no_argument, NULL, 'i'},
+ {"suffix", required_argument, NULL, 'S'},
+ {"symbolic", no_argument, &symbolic_link, 1},
+ {"verbose", no_argument, &verbose, 1},
+ {"version-control", required_argument, NULL, 'V'},
{NULL, 0, NULL, 0}
};