diff --git a/lib/snapshot/snapshot.c b/lib/snapshot/snapshot.c index b832f890d..8446a6914 100644 --- a/lib/snapshot/snapshot.c +++ b/lib/snapshot/snapshot.c @@ -154,7 +154,7 @@ static int _snap_target_present(struct cmd_context *cmd, if (!(_snap_present = (target_present_version(cmd, TARGET_NAME_SNAPSHOT, 1, &maj, &min, &patchlevel) && - target_present(cmd, TARGET_NAME_SNAPSHOT_ORIGIN, 0))) + target_present(cmd, TARGET_NAME_SNAPSHOT_ORIGIN, 0)))) return 0; if ((maj > 1 || diff --git a/lib/writecache/writecache.c b/lib/writecache/writecache.c index d114d698c..aa2113271 100644 --- a/lib/writecache/writecache.c +++ b/lib/writecache/writecache.c @@ -238,7 +238,7 @@ static int _target_present(struct cmd_context *cmd, if (!_writecache_checked) { _writecache_checked = 1; - if (!(_writecache_present = target_present_version(cmd, TARGET_NAME_WRITECACHE, 1. + if (!(_writecache_present = target_present_version(cmd, TARGET_NAME_WRITECACHE, 1, &maj, &min, &patchlevel))) return 0;