Commit d35ee09e authored by Shuhei Matsumoto's avatar Shuhei Matsumoto Committed by Ben Walker
Browse files

json: Use not C++ style comments // but C-style comments /* */



Change-Id: I8274d445fc84fce6b0f8f4fd1e57894f54fccfd1
Signed-off-by: default avatarShuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-on: https://review.gerrithub.io/431081


Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Chandler-Test-Pool: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: default avatarJim Harris <james.r.harris@intel.com>
Reviewed-by: default avatarBen Walker <benjamin.walker@intel.com>
Reviewed-by: default avatarPawel Wodkowski <pawelx.wodkowski@intel.com>
parent bf9dbb9f
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -177,7 +177,7 @@ emit_indent(struct spdk_json_write_ctx *w)
static int
begin_value(struct spdk_json_write_ctx *w)
{
	// TODO: check for value state
	/* TODO: check for value state */
	if (w->new_indent) {
		if (emit_fmt(w, "\n", 1)) { return fail(w); }
		if (emit_indent(w)) { return fail(w); }
@@ -561,7 +561,7 @@ spdk_json_write_val(struct spdk_json_write_ctx *w, const struct spdk_json_val *v
			}
		}

		// Loop up to and including the _END value
		/* Loop up to and including the _END value */
		for (i = 0; i < num_values + 1;) {
			if (spdk_json_write_val(w, &val[i + 1])) {
				return fail(w);
@@ -582,7 +582,7 @@ spdk_json_write_val(struct spdk_json_write_ctx *w, const struct spdk_json_val *v
		return spdk_json_write_object_end(w);

	case SPDK_JSON_VAL_INVALID:
		// Handle INVALID to make the compiler happy (and catch other unhandled types)
		/* Handle INVALID to make the compiler happy (and catch other unhandled types) */
		return fail(w);
	}