Commit 75b68561 authored by Konrad Sztyber's avatar Konrad Sztyber Committed by Tomasz Zawadzki
Browse files

json: return -1 on spdk_json_decode_uuid() failure



It makes it consistent with the other spdk_json_decode*() functions, as
they return -1, not errnos.

Signed-off-by: default avatarKonrad Sztyber <konrad.sztyber@intel.com>
Change-Id: I6579a0a7e77ff831742cb2f4c651f2c42d7268c1
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/20532


Community-CI: Mellanox Build Bot
Reviewed-by: default avatarTomasz Zawadzki <tomasz.zawadzki@intel.com>
Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: default avatarJim Harris <jim.harris@samsung.com>
parent 12fbe739
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -513,7 +513,7 @@ spdk_json_decode_uuid(const struct spdk_json_val *val, void *out)
	rc = spdk_uuid_parse(uuid, str);
	free(str);

	return rc;
	return rc == 0 ? 0 : -1;
}

static struct spdk_json_val *