diff options
author | Andreas Schneider <asn@samba.org> | 2019-01-08 11:49:28 +0100 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2019-01-28 10:29:26 +0100 |
commit | 8c774f5a5d63239f57ef06e3451fbab66a9ed2e5 (patch) | |
tree | 8b05d9087c8d6db4f30aac82c5e650b60dc63680 /source4/client | |
parent | 4609e6fb2b41d5b34a3c253f757d8e1adc0252fe (diff) | |
download | samba-8c774f5a5d63239f57ef06e3451fbab66a9ed2e5.tar.gz |
s4:cifsdd: Use C99 initializers for cifsdd argdef
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Diffstat (limited to 'source4/client')
-rw-r--r-- | source4/client/cifsdd.c | 66 |
1 files changed, 55 insertions, 11 deletions
diff --git a/source4/client/cifsdd.c b/source4/client/cifsdd.c index 8ffb7b9a417..dfdaf048b3f 100644 --- a/source4/client/cifsdd.c +++ b/source4/client/cifsdd.c @@ -85,20 +85,64 @@ static const char * argtype_str(enum argtype arg_type) static struct argdef args[] = { - { "bs", ARG_SIZE, "force ibs and obs to SIZE bytes" }, - { "ibs", ARG_SIZE, "read SIZE bytes at a time" }, - { "obs", ARG_SIZE, "write SIZE bytes at a time" }, + { + .arg_name = "bs", + .arg_type = ARG_SIZE, + .arg_help = "force ibs and obs to SIZE bytes", + }, + { + .arg_name = "ibs", + .arg_type = ARG_SIZE, + .arg_help = "read SIZE bytes at a time", + }, + { + .arg_name = "obs", + .arg_type = ARG_SIZE, + .arg_help = "write SIZE bytes at a time", + }, - { "count", ARG_NUMERIC, "copy COUNT input blocks" }, - { "seek",ARG_NUMERIC, "skip COUNT blocks at start of output" }, - { "skip",ARG_NUMERIC, "skip COUNT blocks at start of input" }, + { + .arg_name = "count", + .arg_type = ARG_NUMERIC, + .arg_help = "copy COUNT input blocks", + }, + { + .arg_name = "seek", + .arg_type = ARG_NUMERIC, + .arg_help = "skip COUNT blocks at start of output", + }, + { + .arg_name = "skip", + .arg_type = ARG_NUMERIC, + .arg_help = "skip COUNT blocks at start of input", + }, - { "if", ARG_PATHNAME, "read input from FILE" }, - { "of", ARG_PATHNAME, "write output to FILE" }, + { + .arg_name = "if", + .arg_type = ARG_PATHNAME, + .arg_help = "read input from FILE", + }, + { + .arg_name = "of", + .arg_type = ARG_PATHNAME, + .arg_help = "write output to FILE", + }, - { "direct", ARG_BOOL, "use direct I/O if non-zero" }, - { "sync", ARG_BOOL, "use synchronous writes if non-zero" }, - { "oplock", ARG_BOOL, "take oplocks on the input and output files" }, + { + .arg_name = "direct", + .arg_type = ARG_BOOL, + .arg_help = "use direct I/O if non-zero", + }, + { + .arg_name = "sync", + .arg_type = ARG_BOOL, + .arg_help = "use synchronous writes if non-zero", + }, + { + .arg_name = "oplock", + .arg_type = ARG_BOOL, + .arg_help = "take oplocks on the input and output files", + }, /* FIXME: We should support using iflags and oflags for setting oplock and I/O * options. This would make us compatible with GNU dd. |