From 6cb127da8acef7b3dd03c48a9589409df026552f Mon Sep 17 00:00:00 2001 From: Petr Benes Date: Tue, 8 Feb 2011 15:38:21 +0100 Subject: [PATCH] Fixed typography. --- src/exec_req.c | 2 +- src/exec_req.h | 10 +++++----- src/iop.c | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/exec_req.c b/src/exec_req.c index 028c532..e836dd1 100644 --- a/src/exec_req.c +++ b/src/exec_req.c @@ -95,7 +95,7 @@ void forb_exec_req_process(forb_exec_req_t *exec_req) &env); // The local invocation case - if ((exec_req->request_type = local)) { + if ((exec_req->request_type = FORB_EXEC_REQ_LOCAL)) { *(exec_req->input_request->cdr_reply) = reply_codec; //FIXME: better without copying? // notify that the reply is ready forb_syncobj_signal(&exec_req->input_request->reply_ready); diff --git a/src/exec_req.h b/src/exec_req.h index b8e2147..f496df9 100644 --- a/src/exec_req.h +++ b/src/exec_req.h @@ -65,11 +65,11 @@ #include "request.h" /** - * Distinguishing execution methods of a request. + * Type of request (local/remote) */ -enum FORB_EXEC_REQ_TYPE { - local, // no serialization used - remote +enum forb_exec_req_type { + FORB_EXEC_REQ_LOCAL, // no serialization used + FORB_EXEC_REQ_REMOTE }; /** @@ -83,7 +83,7 @@ typedef struct forb_exec_req { unsigned method_index; /**< Mehotd number to be invoked on the object @a obj. */ FORB_CDR_Codec codec; /**< Bufffer with serialized request parameters. */ ul_list_node_t node; /**< Node for forb_executor_t::requests. */ - enum FORB_EXEC_REQ_TYPE request_type; /**< Execution method. */ + enum forb_exec_req_type request_type; /**< Execution method. */ forb_request_t *input_request; /**< Input request data for the case of local invocation */ } forb_exec_req_t; diff --git a/src/iop.c b/src/iop.c index 248f94a..f010ac4 100644 --- a/src/iop.c +++ b/src/iop.c @@ -388,7 +388,7 @@ process_request(forb_port_t *port, FORB_CDR_Codec *codec, uint32_t message_size) exec_req = forb_malloc(sizeof(*exec_req)); if (exec_req) { memset(exec_req, 0, sizeof(exec_req)); - exec_req->request_type = remote; + exec_req->request_type = FORB_EXEC_REQ_REMOTE; exec_req->request_id = request_header.request_id; exec_req->source = request_header.source; exec_req->obj = obj; @@ -755,7 +755,7 @@ forb_request_send(forb_request_t *req, CORBA_Environment *env) if (forb_object_is_local(req->obj)) { exec_req = forb_malloc(sizeof(*exec_req)); memset(exec_req, 0, sizeof(exec_req)); - exec_req->request_type = local; + exec_req->request_type = FORB_EXEC_REQ_LOCAL; exec_req->input_request = req; exec_req->obj = exec_req->input_request->obj; //exec_req->method_index = req.method_index; -- 2.39.2