Skip to content

Commit

Permalink
Merge pull request #252 from lxbsz/rbd_fix
Browse files Browse the repository at this point in the history
rbd: fix build error for rados_service_update_status()
  • Loading branch information
mikechristie authored Aug 15, 2017
2 parents 73f1507 + 525c5c6 commit bb9a23e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion rbd.c
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,10 @@ struct rbd_aio_cb {
static void tcmu_rbd_service_status_update(struct tcmu_device *dev,
bool has_lock)
{
int ret;
struct tcmu_rbd_state *state = tcmu_get_dev_private(dev);
char *status_buf = NULL;
int ret;

ret = asprintf(&status_buf, "%s%c%s%c", "lock_owner", '\0',
has_lock ? "true" : "false", '\0');
if (ret < 0) {
Expand Down

0 comments on commit bb9a23e

Please sign in to comment.