aboutsummaryrefslogtreecommitdiff
path: root/src/sg_opcodes.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sg_opcodes.c')
-rw-r--r--src/sg_opcodes.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sg_opcodes.c b/src/sg_opcodes.c
index a594870c..140fa9ee 100644
--- a/src/sg_opcodes.c
+++ b/src/sg_opcodes.c
@@ -236,7 +236,7 @@ do_rsoc(int sg_fd, bool rctd, int rep_opts, int rq_opcode, int rq_servact,
*act_resp_lenp = ret;
if ((verbose > 2) && (ret > 0)) {
pr2serr("%s response:\n", rsoc_s);
- hex2stderr(resp, ret, 1);
+ hex2stderr((const uint8_t *)resp, ret, 1);
}
ret = 0;
}
@@ -298,7 +298,7 @@ do_rstmf(int sg_fd, bool repd, void * resp, int mx_resp_len,
*act_resp_lenp = ret;
if ((verbose > 2) && (ret > 0)) {
pr2serr("%s response:\n", rstmf_s);
- hex2stderr(resp, ret, 1);
+ hex2stderr((const uint8_t *)resp, ret, 1);
}
ret = 0;
}