mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-17 18:02:09 +03:00
(long_options): Use NULL, not `0'.
This commit is contained in:
1 parent
aeff09196a
commit
60d48be63c
2 files changed
+23
-23
No files matched your search
+10
-10
@@ -1,5 +1,5 @@
|
||||
/* chmod -- change permission modes of files
|
||||
Copyright (C) 89, 90, 91, 1995-2004 Free Software Foundation, Inc.
|
||||
Copyright (C) 89, 90, 91, 1995-2005 Free Software Foundation, Inc.
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
@@ -88,17 +88,17 @@ enum
|
||||
|
||||
static struct option const long_options[] =
|
||||
{
|
||||
{"changes", no_argument, 0, 'c'},
|
||||
{"recursive", no_argument, 0, 'R'},
|
||||
{"no-preserve-root", no_argument, 0, NO_PRESERVE_ROOT},
|
||||
{"preserve-root", no_argument, 0, PRESERVE_ROOT},
|
||||
{"quiet", no_argument, 0, 'f'},
|
||||
{"reference", required_argument, 0, REFERENCE_FILE_OPTION},
|
||||
{"silent", no_argument, 0, 'f'},
|
||||
{"verbose", no_argument, 0, 'v'},
|
||||
{"changes", no_argument, NULL, 'c'},
|
||||
{"recursive", no_argument, NULL, 'R'},
|
||||
{"no-preserve-root", no_argument, NULL, NO_PRESERVE_ROOT},
|
||||
{"preserve-root", no_argument, NULL, PRESERVE_ROOT},
|
||||
{"quiet", no_argument, NULL, 'f'},
|
||||
{"reference", required_argument, NULL, REFERENCE_FILE_OPTION},
|
||||
{"silent", no_argument, NULL, 'f'},
|
||||
{"verbose", no_argument, NULL, 'v'},
|
||||
{GETOPT_HELP_OPTION_DECL},
|
||||
{GETOPT_VERSION_OPTION_DECL},
|
||||
{0, 0, 0, 0}
|
||||
{NULL, 0, NULL, 0}
|
||||
};
|
||||
|
||||
/* Return true if the chmodable permission bits of FILE changed.
|
||||
|
||||
+13
-13
@@ -1,5 +1,5 @@
|
||||
/* chown -- change user and group ownership of files
|
||||
Copyright (C) 89, 90, 91, 1995-2004 Free Software Foundation, Inc.
|
||||
Copyright (C) 89, 90, 91, 1995-2005 Free Software Foundation, Inc.
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
@@ -67,20 +67,20 @@ enum
|
||||
|
||||
static struct option const long_options[] =
|
||||
{
|
||||
{"recursive", no_argument, 0, 'R'},
|
||||
{"changes", no_argument, 0, 'c'},
|
||||
{"dereference", no_argument, 0, DEREFERENCE_OPTION},
|
||||
{"from", required_argument, 0, FROM_OPTION},
|
||||
{"no-dereference", no_argument, 0, 'h'},
|
||||
{"no-preserve-root", no_argument, 0, NO_PRESERVE_ROOT},
|
||||
{"preserve-root", no_argument, 0, PRESERVE_ROOT},
|
||||
{"quiet", no_argument, 0, 'f'},
|
||||
{"silent", no_argument, 0, 'f'},
|
||||
{"reference", required_argument, 0, REFERENCE_FILE_OPTION},
|
||||
{"verbose", no_argument, 0, 'v'},
|
||||
{"recursive", no_argument, NULL, 'R'},
|
||||
{"changes", no_argument, NULL, 'c'},
|
||||
{"dereference", no_argument, NULL, DEREFERENCE_OPTION},
|
||||
{"from", required_argument, NULL, FROM_OPTION},
|
||||
{"no-dereference", no_argument, NULL, 'h'},
|
||||
{"no-preserve-root", no_argument, NULL, NO_PRESERVE_ROOT},
|
||||
{"preserve-root", no_argument, NULL, PRESERVE_ROOT},
|
||||
{"quiet", no_argument, NULL, 'f'},
|
||||
{"silent", no_argument, NULL, 'f'},
|
||||
{"reference", required_argument, NULL, REFERENCE_FILE_OPTION},
|
||||
{"verbose", no_argument, NULL, 'v'},
|
||||
{GETOPT_HELP_OPTION_DECL},
|
||||
{GETOPT_VERSION_OPTION_DECL},
|
||||
{0, 0, 0, 0}
|
||||
{NULL, 0, NULL, 0}
|
||||
};
|
||||
|
||||
void
|
||||
|
||||
Reference in new issue
Block a user