From e7a6a7a14aeea2ee9f2c235d0cbabf0cb3660e89 Mon Sep 17 00:00:00 2001 From: Michal Zima Date: Fri, 18 Jun 2010 13:09:40 +0200 Subject: Wiped out all "UNUSED" stuff Plus small code cleaning, simplifying of some statements etc. --- src/modules/modBasic.c | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) (limited to 'src/modules/modBasic.c') diff --git a/src/modules/modBasic.c b/src/modules/modBasic.c index d3c80da..8494916 100644 --- a/src/modules/modBasic.c +++ b/src/modules/modBasic.c @@ -14,9 +14,9 @@ #ifndef PUBLIC_SERVER #include "interface.h" #include "image.h" -#else +#else /* PUBLIC_SERVER */ #include "publicServer.h" -#endif +#endif /* PUBLIC_SERVER */ static export_fce_t *export_fce; @@ -31,15 +31,10 @@ static int init(export_fce_t *p) #ifndef PUBLIC_SERVER static int draw(int x, int y, int w, int h) { - UNUSED(x); - UNUSED(y); - UNUSED(w); - UNUSED(h); - debug("Drawing Basic module"); return 0; } -#endif +#endif /* PUBLIC_SERVER */ static int event() { @@ -60,8 +55,9 @@ static void cmd_basic(char *line) static void cmdArena(char *line) { - if (strncmp(line, "basic", 5) == 0) + if (strncmp(line, "basic", 5) == 0) { cmd_basic(line); + } } static void recvMsg(char *msg) @@ -78,9 +74,9 @@ static int destroy() mod_sym_t modbasic_sym = { &init, #ifndef PUBLIC_SERVER &draw, -#else +#else /* PUBLIC_SERVER */ 0, -#endif +#endif /* PUBLIC_SERVER */ &event, &isConflict, &cmdArena, -- cgit v1.2.3