protoverse

A metaverse protocol
git clone git://jb55.com/protoverse
Log | Files | Refs | README | LICENSE

commit c8682805e9cddd0dd893ce24bc751b587770c0a8
parent 449e5b248458b49ea06124ea799be0c9e0fc2fd2
Author: William Casarin <jb55@jb55.com>
Date:   Thu,  8 Jul 2021 14:51:18 -0700

pinephone fixes

Signed-off-by: William Casarin <jb55@jb55.com>

Diffstat:
MMakefile | 1-
Msrc/protoverse.c | 6+++++-
Msrc/wasm.c | 2+-
3 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/Makefile b/Makefile @@ -11,7 +11,6 @@ OBJS = src/io.o \ src/net.o \ src/varint.o \ src/parser.o \ - src/resource.o \ src/wasm.o WASMS = wasm/hello-c.wasm \ diff --git a/src/protoverse.c b/src/protoverse.c @@ -73,13 +73,17 @@ static int print_cell_tree(struct parser *parser, u16 root, int depth) static void init_protoverse_server(struct protoverse_server *server) { + (void)server; + /* init_resource_manager(&server->env.entities, sizeof(struct entity), 1024, MAX_ENTITIES, "entity"); + */ } static void free_protoverse_server(struct protoverse_server *server) { - destroy_resource_manager(&server->env.entities); + (void)server; + //destroy_resource_manager(&server->env.entities); } static int usage(void) diff --git a/src/wasm.c b/src/wasm.c @@ -76,7 +76,7 @@ static void print_val(struct val *val) { switch (val->type) { case i32: printf("%d", val->i32); break; - case i64: printf("%lld", val->i64); break; + case i64: printf("%ld", val->i64); break; case f32: printf("%f", val->f32); break; case f64: printf("%f", val->f64); break; }