]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/spdk/lib/json/json_write.c
import 15.2.0 Octopus source
[ceph.git] / ceph / src / spdk / lib / json / json_write.c
index 0cd600be8b3718e66f5bbc1a1114ef8f724f3bba..7e9fbb5c317b8da76f94afa67bfb0922d5d6269d 100644 (file)
@@ -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);
        }