From d35ee09edfad2d9be9979c00c9ec33d571d45d67 Mon Sep 17 00:00:00 2001 From: Shuhei Matsumoto Date: Mon, 29 Oct 2018 11:47:08 +0900 Subject: [PATCH] json: Use not C++ style comments // but C-style comments /* */ Change-Id: I8274d445fc84fce6b0f8f4fd1e57894f54fccfd1 Signed-off-by: Shuhei Matsumoto Reviewed-on: https://review.gerrithub.io/431081 Tested-by: SPDK CI Jenkins Chandler-Test-Pool: SPDK Automated Test System Reviewed-by: Jim Harris Reviewed-by: Ben Walker Reviewed-by: Pawel Wodkowski --- lib/json/json_write.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/json/json_write.c b/lib/json/json_write.c index 0cd600be8..7e9fbb5c3 100644 --- a/lib/json/json_write.c +++ b/lib/json/json_write.c @@ -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); }