diff options
author | Toomas Soome <tsoome@me.com> | 2021-12-25 21:43:59 +0200 |
---|---|---|
committer | Toomas Soome <tsoome@me.com> | 2022-01-25 21:13:16 +0200 |
commit | 1b863af9bc9a5c76ed773e129889fc19dbf9e41c (patch) | |
tree | 15d7d1416263e6643942f9f6ac0674c7fe48bb1d /usr/src | |
parent | 050c24f35c93857f1022f99834086ade54e70547 (diff) | |
download | illumos-gate-1b863af9bc9a5c76ed773e129889fc19dbf9e41c.tar.gz |
14393 stmf_sbd: build errors with gcc 11
Reviewed by: C Fraire <cfraire@me.com>
Approved by: Dan McDonald <danmcd@joyent.com>
Diffstat (limited to 'usr/src')
-rw-r--r-- | usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd.c b/usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd.c index 88dee95fb8..8a04f24276 100644 --- a/usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd.c +++ b/usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd.c @@ -2677,9 +2677,9 @@ sbd_modify_lu(sbd_modify_lu_t *mlu, int struct_sz, uint32_t *err_ret) /* if there is data in the buf, null terminate it */ if (struct_sz > sizeof (*mlu)) { - char *mlu_buf; + char *mlu_buf = (char *)mlu; - mlu_buf = &(mlu->mlu_buf[0]); + mlu_buf += sizeof (*mlu) - 8; mlu_buf[struct_sz - sizeof (*mlu) + 8 - 1] = '\0'; } @@ -2907,9 +2907,9 @@ sbd_set_global_props(sbd_global_props_t *mlu, int struct_sz, /* if there is data in the buf, null terminate it */ if (struct_sz > sizeof (*mlu)) { - char *mlu_buf; + char *mlu_buf = (char *)mlu; - mlu_buf = &(mlu->mlu_buf[0]); + mlu_buf += sizeof (*mlu) - 8; mlu_buf[struct_sz - sizeof (*mlu) + 8 - 1] = '\0'; } |