From 94d7d2e3e0dbdae72d4a729e2dc4fc96b9ed3f13 Mon Sep 17 00:00:00 2001 From: Cory McWilliams Date: Thu, 29 Dec 2022 17:01:27 +0000 Subject: [PATCH] Formatting. git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4086 ed5197a5-7fde-0310-b194-c3ffbd925b24 --- src/ssb.rpc.c | 3 ++- src/ssb.tests.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/ssb.rpc.c b/src/ssb.rpc.c index f642674b..d60e1f22 100644 --- a/src/ssb.rpc.c +++ b/src/ssb.rpc.c @@ -34,7 +34,8 @@ static void _tf_ssb_rpc_blobs_get(tf_ssb_connection_t* connection, uint8_t flags for (int i = 0; i < length; i++) { JSValue arg = JS_GetPropertyUint32(context, ids, i); - if (!JS_IsString(arg)) { + if (!JS_IsString(arg)) + { JSValue key = JS_GetPropertyStr(context, arg, "key"); JS_FreeValue(context, arg); arg = key; diff --git a/src/ssb.tests.c b/src/ssb.tests.c index de32fee4..cbbda0a8 100644 --- a/src/ssb.tests.c +++ b/src/ssb.tests.c @@ -564,7 +564,8 @@ void tf_ssb_test_bench(const tf_test_options_t* options) struct timespec start_time = { 0 }; struct timespec end_time = { 0 }; clock_gettime(CLOCK_REALTIME, &start_time); - for (int i = 0; i < 10 * 1024; i++) { + for (int i = 0; i < 10 * 1024; i++) + { tf_ssb_append_post(ssb0, "Hello, world!"); } clock_gettime(CLOCK_REALTIME, &end_time);