diff options
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); } } |