recurse = force_silent = verbose = changes_only = 0;
- while ((optc = getopt_long (argc, argv, "Rcfhv", long_options, (int *) 0))
- != EOF)
+ while ((optc = getopt_long (argc, argv, "Rcfhv", long_options, NULL)) != -1)
{
switch (optc)
{
recurse = force_silent = verbose = changes_only = 0;
- while ((optc = getopt_long (argc, argv, "Rcfhv", long_options, (int *) 0))
- != EOF)
+ while ((optc = getopt_long (argc, argv, "Rcfhv", long_options, NULL)) != -1)
{
switch (optc)
{
umask_kill = 0777777 ^ umask (0);
while ((c = getopt_long (argc, argv, "abdfilprsuvxPRS:V:", long_opts,
- (int *) 0)) != EOF)
+ NULL)) != -1)
{
switch (c)
{
int i, n;
int c;
- while ((c = getopt_long (argc, argv, "", long_options, (int *) 0)) != EOF)
+ while ((c = getopt_long (argc, argv, "", long_options, NULL)) != -1)
{
switch (c)
{
exit_status = 0;
while ((i = getopt_long (argc, argv, "aiF:hkmPTt:vx:", long_options, NULL))
- != EOF)
+ != -1)
{
switch (i)
{
parse_long_options (argc, argv, "dircolors", GNU_PACKAGE, VERSION, usage);
- while ((optc = getopt_long (argc, argv, "bcp", long_options, NULL))
- != EOF)
+ while ((optc = getopt_long (argc, argv, "bcp", long_options, NULL)) != -1)
switch (optc)
{
case 'b': /* Bourne shell syntax. */
else
output_size = size_kilobytes;
- while ((c = getopt_long (argc, argv, "abchklmsxDLS", long_options,
- (int *) 0))
- != EOF)
+ while ((c = getopt_long (argc, argv, "abchklmsxDLS", long_options, NULL))
+ != -1)
{
switch (c)
{
version = getenv ("VERSION_CONTROL");
while ((optc = getopt_long (argc, argv, "bcsdg:m:o:V:S:", long_options,
- (int *) 0)) != EOF)
+ NULL)) != -1)
{
switch (optc)
{
= hard_dir_link = 0;
errors = 0;
- while ((c = getopt_long (argc, argv,
- "bdfinsvFS:V:", long_options, (int *) 0))
- != EOF)
+ while ((c = getopt_long (argc, argv, "bdfinsvFS:V:", long_options, NULL))
+ != -1)
{
switch (c)
{
while ((c = getopt_long (argc, argv,
"abcdfgiklmnopqrstuw:xABCDFGI:LNQRST:UX1",
- long_options, (int *) 0)) != EOF)
+ long_options, NULL)) != -1)
{
switch (c)
{
path_mode = 0;
- while ((optc = getopt_long (argc, argv, "pm:", longopts, (int *) 0)) != EOF)
+ while ((optc = getopt_long (argc, argv, "pm:", longopts, NULL)) != -1)
{
switch (optc)
{
#ifndef S_ISFIFO
error (4, 0, _("fifo files not supported"));
#else
- while ((optc = getopt_long (argc, argv, "m:", longopts, (int *) 0)) != EOF)
+ while ((optc = getopt_long (argc, argv, "m:", longopts, NULL)) != -1)
{
switch (optc)
{
symbolic_mode = NULL;
- while ((optc = getopt_long (argc, argv, "m:", longopts, (int *) 0)) != EOF)
+ while ((optc = getopt_long (argc, argv, "m:", longopts, NULL)) != -1)
{
switch (optc)
{
interactive = override_mode = verbose = update = 0;
errors = 0;
- while ((c = getopt_long (argc, argv, "bfiuvS:V:", long_options, (int *) 0))
- != EOF)
+ while ((c = getopt_long (argc, argv, "bfiuvS:V:", long_options, NULL)) != -1)
{
switch (c)
{
pnsize = 256;
pathname = xmalloc (pnsize);
- while ((c = getopt_long (argc, argv, "dfirvR", long_opts, (int *) 0)) != EOF)
+ while ((c = getopt_long (argc, argv, "dfirvR", long_opts, NULL)) != -1)
{
switch (c)
{
empty_paths = 0;
- while ((optc = getopt_long (argc, argv, "p", longopts, (int *) 0)) != EOF)
+ while ((optc = getopt_long (argc, argv, "p", longopts, NULL)) != -1)
{
switch (optc)
{
change_times = no_create = use_ref = posix_date = flexible_date = 0;
newtime = (time_t) -1;
- while ((c = getopt_long (argc, argv, "acd:fmr:t:", longopts, (int *) 0))
- != EOF)
+ while ((c = getopt_long (argc, argv, "acd:fmr:t:", longopts, NULL)) != -1)
{
switch (c)
{