diff options
author | Douglas Gilbert <dgilbert@interlog.com> | 2018-01-19 20:14:20 +0000 |
---|---|---|
committer | Douglas Gilbert <dgilbert@interlog.com> | 2018-01-19 20:14:20 +0000 |
commit | 6293187a432dd0bbf85961a897755bd0260f28ad (patch) | |
tree | d8a060af6e3e03f286881dc4d5ed6a398e466ccd /src/sg_timestamp.c | |
parent | 400444efd4e3c2cd758aee250556c84e052634dc (diff) | |
download | sg3_utils-6293187a432dd0bbf85961a897755bd0260f28ad.tar.gz |
update BSD license from 3 to 2 clause aka FreeBSD license (without reference to FreeBSD project); more hex2* cleanup
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@746 6180dd3e-e324-4e3e-922d-17de1ae2f315
Diffstat (limited to 'src/sg_timestamp.c')
-rw-r--r-- | src/sg_timestamp.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/sg_timestamp.c b/src/sg_timestamp.c index aa6dea6a..f50aa7a4 100644 --- a/src/sg_timestamp.c +++ b/src/sg_timestamp.c @@ -168,7 +168,8 @@ sg_ll_rep_timestamp(int sg_fd, void * resp, int mx_resp_len, int * residp, *residp = k; if ((verbose > 2) && ((mx_resp_len - k) > 0)) { pr2serr("Parameter data returned:\n"); - hex2stderr(resp, mx_resp_len - k, ((verbose > 3) ? -1 : 1)); + hex2stderr((const uint8_t *)resp, mx_resp_len - k, + ((verbose > 3) ? -1 : 1)); } destruct_scsi_pt_obj(ptvp); return ret; @@ -196,7 +197,7 @@ sg_ll_set_timestamp(int sg_fd, void * paramp, int param_len, bool noisy, pr2serr("\n"); if ((verbose > 1) && paramp && param_len) { pr2serr(" set timestamp parameter list:\n"); - hex2stderr(paramp, param_len, -1); + hex2stderr((const uint8_t *)paramp, param_len, -1); } } |