diff options
author | Douglas Gilbert <dgilbert@interlog.com> | 2018-02-22 07:00:28 +0000 |
---|---|---|
committer | Douglas Gilbert <dgilbert@interlog.com> | 2018-02-22 07:00:28 +0000 |
commit | 252086533f8af0736c2a4987cd70a44366837ec1 (patch) | |
tree | 1f9245e247673fdb6ebea13b9aa559e1f869d78c /src/sg_get_config.c | |
parent | 39ea1b548f21c006c311ace897b221b100bfa88d (diff) | |
download | sg3_utils-252086533f8af0736c2a4987cd70a44366837ec1.tar.gz |
sg_lib: add sg_if_can2stdout(); use uint8_t instead of unsigned char; Windows pass-through work
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@754 6180dd3e-e324-4e3e-922d-17de1ae2f315
Diffstat (limited to 'src/sg_get_config.c')
-rw-r--r-- | src/sg_get_config.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/sg_get_config.c b/src/sg_get_config.c index 9fdd3827..6c2102d4 100644 --- a/src/sg_get_config.c +++ b/src/sg_get_config.c @@ -31,7 +31,7 @@ */ -static const char * version_str = "0.44 20171008"; /* mmc6r02 */ +static const char * version_str = "0.45 20182198"; /* mmc6r02 */ #define MX_ALLOC_LEN 8192 #define NAME_BUFF_SZ 64 @@ -39,7 +39,7 @@ static const char * version_str = "0.44 20171008"; /* mmc6r02 */ #define ME "sg_get_config: " -static unsigned char resp_buffer[MX_ALLOC_LEN]; +static uint8_t resp_buffer[MX_ALLOC_LEN]; static struct option long_options[] = { {"brief", no_argument, 0, 'b'}, @@ -243,7 +243,7 @@ dStrRaw(const char * str, int len) } static void -decode_feature(int feature, unsigned char * bp, int len) +decode_feature(int feature, uint8_t * bp, int len) { int k, num, n, profile; char buff[128]; @@ -882,11 +882,11 @@ decode_feature(int feature, unsigned char * bp, int len) } static void -decode_config(unsigned char * resp, int max_resp_len, int len, bool brief, +decode_config(uint8_t * resp, int max_resp_len, int len, bool brief, bool inner_hex) { int k, curr_profile, extra_len, feature; - unsigned char * bp; + uint8_t * bp; char buff[128]; if (max_resp_len < len) { |