From 8143a23ced12a786a59c38e7ff5a025a2b1506f4 Mon Sep 17 00:00:00 2001 From: Cory McWilliams Date: Wed, 11 Jun 2025 18:52:56 -0400 Subject: [PATCH] format --- src/httpd.js.h | 2 +- src/util.js.c | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/httpd.js.h b/src/httpd.js.h index 3cdb4662..8c44ca88 100644 --- a/src/httpd.js.h +++ b/src/httpd.js.h @@ -11,7 +11,7 @@ ** @{ */ -#include "quickjs.h" +typedef struct JSContext JSContext; /** ** An HTTP server instance. diff --git a/src/util.js.c b/src/util.js.c index cf917d1d..d685b995 100644 --- a/src/util.js.c +++ b/src/util.js.c @@ -500,8 +500,7 @@ void tf_util_document_settings(const char* line_prefix) JSValue tf_util_new_uint8_array(JSContext* context, const uint8_t* data, size_t size) { JSValue array_buffer = JS_NewArrayBufferCopy(context, data, size); - JSValue args[] = - { + JSValue args[] = { array_buffer, JS_NewInt64(context, 0), JS_NewInt64(context, size),