summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/basename.c2
-rw-r--r--src/chroot.c2
-rw-r--r--src/cksum.c2
-rw-r--r--src/dd.c2
-rw-r--r--src/dirname.c2
-rw-r--r--src/factor.c2
-rw-r--r--src/hostid.c2
-rw-r--r--src/hostname.c2
-rw-r--r--src/link.c2
-rw-r--r--src/logname.c2
-rw-r--r--src/nohup.c2
-rw-r--r--src/printenv.c2
-rw-r--r--src/pwd.c2
-rw-r--r--src/setuidgid.c2
-rw-r--r--src/sleep.c2
-rw-r--r--src/sync.c2
-rw-r--r--src/tsort.c2
-rw-r--r--src/unlink.c2
-rw-r--r--src/uptime.c2
-rw-r--r--src/users.c2
-rw-r--r--src/whoami.c2
-rw-r--r--src/yes.c2
22 files changed, 22 insertions, 22 deletions
diff --git a/src/basename.c b/src/basename.c
index 79fdd091e..13cdfa3fd 100644
--- a/src/basename.c
+++ b/src/basename.c
@@ -103,7 +103,7 @@ main (int argc, char **argv)
parse_long_options (argc, argv, PROGRAM_NAME, GNU_PACKAGE, VERSION,
usage, AUTHORS, (char const *) NULL);
- if (getopt (argc, argv, "+") != -1)
+ if (getopt_long (argc, argv, "+", NULL, NULL) != -1)
usage (EXIT_FAILURE);
if (argc < optind + 1)
diff --git a/src/chroot.c b/src/chroot.c
index 25790081b..f68751b20 100644
--- a/src/chroot.c
+++ b/src/chroot.c
@@ -76,7 +76,7 @@ main (int argc, char **argv)
parse_long_options (argc, argv, PROGRAM_NAME, GNU_PACKAGE, VERSION,
usage, AUTHORS, (char const *) NULL);
- if (getopt (argc, argv, "+") != -1)
+ if (getopt_long (argc, argv, "+", NULL, NULL) != -1)
usage (EXIT_FAIL);
if (argc <= optind)
diff --git a/src/cksum.c b/src/cksum.c
index 6cf47619d..8f0d86ba9 100644
--- a/src/cksum.c
+++ b/src/cksum.c
@@ -298,7 +298,7 @@ main (int argc, char **argv)
parse_long_options (argc, argv, PROGRAM_NAME, PACKAGE, VERSION,
usage, AUTHORS, (char const *) NULL);
- if (getopt (argc, argv, "") != -1)
+ if (getopt_long (argc, argv, "", NULL, NULL) != -1)
usage (EXIT_FAILURE);
have_read_stdin = false;
diff --git a/src/dd.c b/src/dd.c
index e4f6f1e59..0d74ae900 100644
--- a/src/dd.c
+++ b/src/dd.c
@@ -1447,7 +1447,7 @@ main (int argc, char **argv)
parse_long_options (argc, argv, PROGRAM_NAME, PACKAGE, VERSION,
usage, AUTHORS, (char const *) NULL);
- if (getopt (argc, argv, "") != -1)
+ if (getopt_long (argc, argv, "", NULL, NULL) != -1)
usage (EXIT_FAILURE);
/* Don't close stdout on exit from here on. */
diff --git a/src/dirname.c b/src/dirname.c
index 40a9b29ce..5c9ab9ef7 100644
--- a/src/dirname.c
+++ b/src/dirname.c
@@ -78,7 +78,7 @@ main (int argc, char **argv)
parse_long_options (argc, argv, PROGRAM_NAME, GNU_PACKAGE, VERSION,
usage, AUTHORS, (char const *) NULL);
- if (getopt (argc, argv, "+") != -1)
+ if (getopt_long (argc, argv, "+", NULL, NULL) != -1)
usage (EXIT_FAILURE);
if (argc < optind + 1)
diff --git a/src/factor.c b/src/factor.c
index 79adc2882..9a30ce771 100644
--- a/src/factor.c
+++ b/src/factor.c
@@ -202,7 +202,7 @@ main (int argc, char **argv)
parse_long_options (argc, argv, PROGRAM_NAME, GNU_PACKAGE, VERSION,
usage, AUTHORS, (char const *) NULL);
- if (getopt (argc, argv, "") != -1)
+ if (getopt_long (argc, argv, "", NULL, NULL) != -1)
usage (EXIT_FAILURE);
if (argc <= optind)
diff --git a/src/hostid.c b/src/hostid.c
index 8bb76abf1..cfd63cf1b 100644
--- a/src/hostid.c
+++ b/src/hostid.c
@@ -74,7 +74,7 @@ main (int argc, char **argv)
parse_long_options (argc, argv, PROGRAM_NAME, GNU_PACKAGE, VERSION,
usage, AUTHORS, (char const *) NULL);
- if (getopt (argc, argv, "") != -1)
+ if (getopt_long (argc, argv, "", NULL, NULL) != -1)
usage (EXIT_FAILURE);
if (optind < argc)
diff --git a/src/hostname.c b/src/hostname.c
index 929449ef6..6d7f41813 100644
--- a/src/hostname.c
+++ b/src/hostname.c
@@ -91,7 +91,7 @@ main (int argc, char **argv)
parse_long_options (argc, argv, PROGRAM_NAME, GNU_PACKAGE, VERSION,
usage, AUTHORS, (char const *) NULL);
- if (getopt (argc, argv, "") != -1)
+ if (getopt_long (argc, argv, "", NULL, NULL) != -1)
usage (EXIT_FAILURE);
if (argc == optind + 1)
diff --git a/src/link.c b/src/link.c
index cbe95867e..032667238 100644
--- a/src/link.c
+++ b/src/link.c
@@ -74,7 +74,7 @@ main (int argc, char **argv)
parse_long_options (argc, argv, PROGRAM_NAME, GNU_PACKAGE, VERSION,
usage, AUTHORS, (char const *) NULL);
- if (getopt (argc, argv, "") != -1)
+ if (getopt_long (argc, argv, "", NULL, NULL) != -1)
usage (EXIT_FAILURE);
if (argc < optind + 2)
diff --git a/src/logname.c b/src/logname.c
index d22f48e42..033cbd507 100644
--- a/src/logname.c
+++ b/src/logname.c
@@ -68,7 +68,7 @@ main (int argc, char **argv)
parse_long_options (argc, argv, PROGRAM_NAME, GNU_PACKAGE, VERSION,
usage, AUTHORS, (char const *) NULL);
- if (getopt (argc, argv, "") != -1)
+ if (getopt_long (argc, argv, "", NULL, NULL) != -1)
usage (EXIT_FAILURE);
if (optind < argc)
diff --git a/src/nohup.c b/src/nohup.c
index 79a8c5043..e1a3d80b8 100644
--- a/src/nohup.c
+++ b/src/nohup.c
@@ -87,7 +87,7 @@ main (int argc, char **argv)
parse_long_options (argc, argv, PROGRAM_NAME, GNU_PACKAGE, VERSION,
usage, AUTHORS, (char const *) NULL);
- if (getopt (argc, argv, "+") != -1)
+ if (getopt_long (argc, argv, "+", NULL, NULL) != -1)
usage (EXIT_FAILURE);
if (argc <= optind)
diff --git a/src/printenv.c b/src/printenv.c
index b91e2979c..b006b5d32 100644
--- a/src/printenv.c
+++ b/src/printenv.c
@@ -91,7 +91,7 @@ main (int argc, char **argv)
parse_long_options (argc, argv, PROGRAM_NAME, GNU_PACKAGE, VERSION,
usage, AUTHORS, (char const *) NULL);
- if (getopt (argc, argv, "+") != -1)
+ if (getopt_long (argc, argv, "+", NULL, NULL) != -1)
usage (PRINTENV_FAILURE);
if (optind >= argc)
diff --git a/src/pwd.c b/src/pwd.c
index 4bac5bb10..06bbbb270 100644
--- a/src/pwd.c
+++ b/src/pwd.c
@@ -306,7 +306,7 @@ main (int argc, char **argv)
parse_long_options (argc, argv, PROGRAM_NAME, GNU_PACKAGE, VERSION,
usage, AUTHORS, (char const *) NULL);
- if (getopt (argc, argv, "") != -1)
+ if (getopt_long (argc, argv, "", NULL, NULL) != -1)
usage (EXIT_FAILURE);
if (optind < argc)
diff --git a/src/setuidgid.c b/src/setuidgid.c
index 7b9804609..4403e8e90 100644
--- a/src/setuidgid.c
+++ b/src/setuidgid.c
@@ -86,7 +86,7 @@ main (int argc, char **argv)
parse_long_options (argc, argv, PROGRAM_NAME, GNU_PACKAGE, VERSION,
usage, AUTHORS, (char const *) NULL);
- if (getopt (argc, argv, "+") != -1)
+ if (getopt_long (argc, argv, "+", NULL, NULL) != -1)
usage (SETUIDGID_FAILURE);
if (argc <= optind + 1)
diff --git a/src/sleep.c b/src/sleep.c
index babf9cd77..0c64e91e0 100644
--- a/src/sleep.c
+++ b/src/sleep.c
@@ -113,7 +113,7 @@ main (int argc, char **argv)
parse_long_options (argc, argv, PROGRAM_NAME, GNU_PACKAGE, VERSION,
usage, AUTHORS, (char const *) NULL);
- if (getopt (argc, argv, "") != -1)
+ if (getopt_long (argc, argv, "", NULL, NULL) != -1)
usage (EXIT_FAILURE);
if (argc == 1)
diff --git a/src/sync.c b/src/sync.c
index 04e99d800..ad22351f7 100644
--- a/src/sync.c
+++ b/src/sync.c
@@ -67,7 +67,7 @@ main (int argc, char **argv)
parse_long_options (argc, argv, PROGRAM_NAME, PACKAGE, VERSION,
usage, AUTHORS, (char const *) NULL);
- if (getopt (argc, argv, "") != -1)
+ if (getopt_long (argc, argv, "", NULL, NULL) != -1)
usage (EXIT_FAILURE);
if (optind < argc)
diff --git a/src/tsort.c b/src/tsort.c
index 4439b86c9..f496d08ec 100644
--- a/src/tsort.c
+++ b/src/tsort.c
@@ -552,7 +552,7 @@ main (int argc, char **argv)
parse_long_options (argc, argv, PROGRAM_NAME, PACKAGE, VERSION,
usage, AUTHORS, (char const *) NULL);
- if (getopt (argc, argv, "") != -1)
+ if (getopt_long (argc, argv, "", NULL, NULL) != -1)
usage (EXIT_FAILURE);
have_read_stdin = false;
diff --git a/src/unlink.c b/src/unlink.c
index 5806ec8b0..b2702c8c2 100644
--- a/src/unlink.c
+++ b/src/unlink.c
@@ -73,7 +73,7 @@ main (int argc, char **argv)
parse_long_options (argc, argv, PROGRAM_NAME, GNU_PACKAGE, VERSION,
usage, AUTHORS, (char const *) NULL);
- if (getopt (argc, argv, "") != -1)
+ if (getopt_long (argc, argv, "", NULL, NULL) != -1)
usage (EXIT_FAILURE);
if (argc < optind + 1)
diff --git a/src/uptime.c b/src/uptime.c
index 01c004194..9552a9be6 100644
--- a/src/uptime.c
+++ b/src/uptime.c
@@ -219,7 +219,7 @@ main (int argc, char **argv)
parse_long_options (argc, argv, PROGRAM_NAME, GNU_PACKAGE, VERSION,
usage, AUTHORS, (char const *) NULL);
- if (getopt (argc, argv, "") != -1)
+ if (getopt_long (argc, argv, "", NULL, NULL) != -1)
usage (EXIT_FAILURE);
switch (argc - optind)
diff --git a/src/users.c b/src/users.c
index 2858019cc..83e33d9e1 100644
--- a/src/users.c
+++ b/src/users.c
@@ -135,7 +135,7 @@ main (int argc, char **argv)
parse_long_options (argc, argv, PROGRAM_NAME, GNU_PACKAGE, VERSION,
usage, AUTHORS, (char const *) NULL);
- if (getopt (argc, argv, "") != -1)
+ if (getopt_long (argc, argv, "", NULL, NULL) != -1)
usage (EXIT_FAILURE);
switch (argc - optind)
diff --git a/src/whoami.c b/src/whoami.c
index 8614c5b82..8e01df1e5 100644
--- a/src/whoami.c
+++ b/src/whoami.c
@@ -76,7 +76,7 @@ main (int argc, char **argv)
parse_long_options (argc, argv, PROGRAM_NAME, GNU_PACKAGE, VERSION,
usage, AUTHORS, (char const *) NULL);
- if (getopt (argc, argv, "") != -1)
+ if (getopt_long (argc, argv, "", NULL, NULL) != -1)
usage (EXIT_FAILURE);
if (optind != argc)
diff --git a/src/yes.c b/src/yes.c
index 6d0068662..6003cabb0 100644
--- a/src/yes.c
+++ b/src/yes.c
@@ -73,7 +73,7 @@ main (int argc, char **argv)
parse_long_options (argc, argv, PROGRAM_NAME, GNU_PACKAGE, VERSION,
usage, AUTHORS, (char const *) NULL);
- if (getopt (argc, argv, "+") != -1)
+ if (getopt_long (argc, argv, "+", NULL, NULL) != -1)
usage (EXIT_FAILURE);
if (argc <= optind)