mirror of
https://github.com/samba-team/samba.git
synced 2025-02-23 09:57:40 +03:00
s3:utils: Use C99 initializer for poptOption in profiles
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
This commit is contained in:
parent
19d4495882
commit
aa944d50fa
@ -219,9 +219,30 @@ int main( int argc, const char *argv[] )
|
|||||||
char *orig_filename, *new_filename;
|
char *orig_filename, *new_filename;
|
||||||
struct poptOption long_options[] = {
|
struct poptOption long_options[] = {
|
||||||
POPT_AUTOHELP
|
POPT_AUTOHELP
|
||||||
{ "change-sid", 'c', POPT_ARG_STRING, NULL, 'c', "Provides SID to change" },
|
{
|
||||||
{ "new-sid", 'n', POPT_ARG_STRING, NULL, 'n', "Provides SID to change to" },
|
.longName = "change-sid",
|
||||||
{ "verbose", 'v', POPT_ARG_NONE, &opt_verbose, 'v', "Verbose output" },
|
.shortName = 'c',
|
||||||
|
.argInfo = POPT_ARG_STRING,
|
||||||
|
.arg = NULL,
|
||||||
|
.val = 'c',
|
||||||
|
.descrip = "Provides SID to change",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
.longName = "new-sid",
|
||||||
|
.shortName = 'n',
|
||||||
|
.argInfo = POPT_ARG_STRING,
|
||||||
|
.arg = NULL,
|
||||||
|
.val = 'n',
|
||||||
|
.descrip = "Provides SID to change to",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
.longName = "verbose",
|
||||||
|
.shortName = 'v',
|
||||||
|
.argInfo = POPT_ARG_NONE,
|
||||||
|
.arg = &opt_verbose,
|
||||||
|
.val = 'v',
|
||||||
|
.descrip = "Verbose output",
|
||||||
|
},
|
||||||
POPT_COMMON_SAMBA
|
POPT_COMMON_SAMBA
|
||||||
POPT_COMMON_VERSION
|
POPT_COMMON_VERSION
|
||||||
POPT_TABLEEND
|
POPT_TABLEEND
|
||||||
|
Loading…
x
Reference in New Issue
Block a user