diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2012-09-26 23:56:42 +0200 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2012-09-26 23:56:42 +0200 |
commit | ae02f04685ae7a6c543eebb43e882386e679a01e (patch) | |
tree | ca59a7f4f2cd948cab189a3361ed1b2d33cf3548 | |
parent | 24618c56527b7180feaf858b3a1c7990f4cd7105 (diff) | |
download | osc-graphics-ae02f04685ae7a6c543eebb43e882386e679a01e.tar.gz |
removed "struct" when using the struct type
-rw-r--r-- | osc_server.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/osc_server.cpp b/osc_server.cpp index 7b220cd..d7c76d5 100644 --- a/osc_server.cpp +++ b/osc_server.cpp @@ -161,7 +161,7 @@ method_generic_handler(const char *path __attribute__((unused)), void *data __attribute__((unused)), void *user_data) { - struct OscMethodDefaultCtx *ctx = (struct OscMethodDefaultCtx *)user_data; + OscMethodDefaultCtx *ctx = (OscMethodDefaultCtx *)user_data; ctx->layer->lock(); ctx->method_cb(ctx->layer, argv); @@ -175,7 +175,7 @@ OSCServer::register_method(Layer *layer, const char *method, const char *types, MethodHandlerCb method_cb) { MethodHandlerId *hnd; - struct OscMethodDefaultCtx *ctx = new struct OscMethodDefaultCtx; + OscMethodDefaultCtx *ctx = new OscMethodDefaultCtx; ctx->layer = layer; ctx->method_cb = method_cb; @@ -189,7 +189,7 @@ OSCServer::register_method(Layer *layer, const char *method, const char *types, void OSCServer::unregister_method(MethodHandlerId *hnd) { - delete (struct OscMethodDefaultCtx *)hnd->data; + delete (OscMethodDefaultCtx *)hnd->data; del_method(hnd); } |