From f0ac0b78c1317054f6183ce688ebe8d51267c92d Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Sun, 19 Jun 2016 19:26:30 +0800 Subject: [PATCH] runtime: minor cleanup --- artiq/runtime/ksupport.c | 6 ++++-- artiq/runtime/messages.h | 7 ------- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/artiq/runtime/ksupport.c b/artiq/runtime/ksupport.c index 5f985e65d..780818dc2 100644 --- a/artiq/runtime/ksupport.c +++ b/artiq/runtime/ksupport.c @@ -486,7 +486,8 @@ void send_rpc(int service, const char *tag, ...) va_end(request.args); } -int recv_rpc(void *slot) { +int recv_rpc(void *slot) +{ struct msg_rpc_recv_request request; struct msg_rpc_recv_reply *reply; @@ -525,7 +526,8 @@ struct type_desc { void **objects; }; -void attribute_writeback(void *utypes) { +void attribute_writeback(void *utypes) +{ struct type_desc **types = (struct type_desc **)utypes; while(*types) { struct type_desc *type = *types++; diff --git a/artiq/runtime/messages.h b/artiq/runtime/messages.h index 49df62319..1a297d630 100644 --- a/artiq/runtime/messages.h +++ b/artiq/runtime/messages.h @@ -103,13 +103,6 @@ struct msg_rpc_recv_reply { struct artiq_exception *exception; }; -struct msg_rpc_batch { - int type; - int service; - const char *tag; - void *ptr; -}; - struct msg_cache_get_request { int type; const char *key;