diff options
author | Douglas Gilbert <dgilbert@interlog.com> | 2018-03-05 03:44:16 +0000 |
---|---|---|
committer | Douglas Gilbert <dgilbert@interlog.com> | 2018-03-05 03:44:16 +0000 |
commit | bb1ca28ae1a69909b23522bcd412244b0c8e583c (patch) | |
tree | 5df479456e4f6b4d0a0dcc203abed41f69e03ff0 /src/sg_rbuf.c | |
parent | 090d6026610616895444792b75d90861b3c968f9 (diff) | |
download | sg3_utils-bb1ca28ae1a69909b23522bcd412244b0c8e583c.tar.gz |
sg_ses: --data=@FN with --status now decodes dpage(s) in FN; add --quiet option to suppress messages
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@758 6180dd3e-e324-4e3e-922d-17de1ae2f315
Diffstat (limited to 'src/sg_rbuf.c')
-rw-r--r-- | src/sg_rbuf.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/sg_rbuf.c b/src/sg_rbuf.c index c06b1652..2bc14d4b 100644 --- a/src/sg_rbuf.c +++ b/src/sg_rbuf.c @@ -57,7 +57,7 @@ #endif -static const char * version_str = "5.02 20180219"; +static const char * version_str = "5.03 20180302"; static struct option long_options[] = { {"buffer", required_argument, 0, 'b'}, @@ -150,7 +150,7 @@ usage_for(const struct opts_t * optsp) } static int -process_cl_new(struct opts_t * optsp, int argc, char * argv[]) +new_parse_cmd_line(struct opts_t * optsp, int argc, char * argv[]) { int c, n; int64_t nn; @@ -236,7 +236,7 @@ process_cl_new(struct opts_t * optsp, int argc, char * argv[]) } static int -process_cl_old(struct opts_t * optsp, int argc, char * argv[]) +old_parse_cmd_line(struct opts_t * optsp, int argc, char * argv[]) { bool jmp_out; int k, plen, num; @@ -328,7 +328,7 @@ process_cl_old(struct opts_t * optsp, int argc, char * argv[]) } static int -process_cl(struct opts_t * optsp, int argc, char * argv[]) +parse_cmd_line(struct opts_t * optsp, int argc, char * argv[]) { int res; char * cp; @@ -336,14 +336,14 @@ process_cl(struct opts_t * optsp, int argc, char * argv[]) cp = getenv("SG3_UTILS_OLD_OPTS"); if (cp) { optsp->opt_new = false; - res = process_cl_old(optsp, argc, argv); + res = old_parse_cmd_line(optsp, argc, argv); if ((0 == res) && optsp->opt_new) - res = process_cl_new(optsp, argc, argv); + res = new_parse_cmd_line(optsp, argc, argv); } else { optsp->opt_new = true; - res = process_cl_new(optsp, argc, argv); + res = new_parse_cmd_line(optsp, argc, argv); if ((0 == res) && (! optsp->opt_new)) - res = process_cl_old(optsp, argc, argv); + res = old_parse_cmd_line(optsp, argc, argv); } return res; } @@ -378,7 +378,7 @@ main(int argc, char * argv[]) #endif op = &opts; memset(op, 0, sizeof(opts)); - res = process_cl(op, argc, argv); + res = parse_cmd_line(op, argc, argv); if (res) return SG_LIB_SYNTAX_ERROR; if (op->do_help) { |