diff options
| author | Michal Zima <xhire@mujmalysvet.cz> | 2010-06-18 13:09:40 +0200 |
|---|---|---|
| committer | Michal Zima <xhire@mujmalysvet.cz> | 2010-06-18 13:09:40 +0200 |
| commit | e7a6a7a14aeea2ee9f2c235d0cbabf0cb3660e89 (patch) | |
| tree | 4ab86d23b7470657761d754426bab3645a91bf14 /src/modules/modBasic.c | |
| parent | 8a278016b0ebe4b2a20348f1ebb2aff3037248c3 (diff) | |
Wiped out all "UNUSED" stuff
Plus small code cleaning, simplifying of some statements etc.
Diffstat (limited to 'src/modules/modBasic.c')
| -rw-r--r-- | src/modules/modBasic.c | 18 |
1 files changed, 7 insertions, 11 deletions
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, |