summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1998-08-30 02:55:12 +0000
committerJim Meyering <jim@meyering.net>1998-08-30 02:55:12 +0000
commitcb1386ec3238a0c71942936bdcb3ed5d04d1f6d9 (patch)
tree00ebf0bf4a6641be93e8ec8da445f8eb1879866c /src
parentda2761cc1a68bbecc95f8ce5cf428f4403f07a2d (diff)
downloadcoreutils-cb1386ec3238a0c71942936bdcb3ed5d04d1f6d9.tar.xz
(long_options): Use corresponding short-option character
in place of `1', and `NULL' in place of pointer in initialization.
Diffstat (limited to 'src')
-rw-r--r--src/cp.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/cp.c b/src/cp.c
index ef73da2e1..fc1f2e790 100644
--- a/src/cp.c
+++ b/src/cp.c
@@ -96,13 +96,13 @@ static struct option const long_opts[] =
{"archive", no_argument, NULL, 'a'},
{"backup", no_argument, NULL, 'b'},
{"force", no_argument, NULL, 'f'},
- {"sparse", required_argument, NULL, 2},
+ {"sparse", required_argument, NULL, CHAR_MAX + 1},
{"interactive", no_argument, NULL, 'i'},
{"link", no_argument, NULL, 'l'},
{"no-dereference", no_argument, NULL, 'd'},
{"one-file-system", no_argument, NULL, 'x'},
- {"parents", no_argument, &flag_path, 1},
- {"path", no_argument, &flag_path, 1},
+ {"parents", no_argument, NULL, 'P'},
+ {"path", no_argument, NULL, 'P'},
{"preserve", no_argument, NULL, 'p'},
{"recursive", no_argument, NULL, 'R'},
{"suffix", required_argument, NULL, 'S'},
@@ -654,7 +654,7 @@ main (int argc, char **argv)
case 0:
break;
- case 2:
+ case CHAR_MAX + 1:
{
int i;