From 409083e69d4bb9d8b1eb492b3474c86e093f2de8 Mon Sep 17 00:00:00 2001 From: xHire Date: Tue, 26 May 2009 00:44:42 +0200 Subject: Rewritten messages/comments in code of base Rectified the coding style in code of base --- src/base/shareFunction.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/base/shareFunction.c') diff --git a/src/base/shareFunction.c b/src/base/shareFunction.c index 52fc48a..7121cfd 100644 --- a/src/base/shareFunction.c +++ b/src/base/shareFunction.c @@ -1,4 +1,3 @@ - #include #include #include @@ -25,7 +24,7 @@ static share_fce_item_t *newShareFceItem(char *name, void *function) return new; } -static void destroyShareFce(share_fce_item_t * p) +static void destroyShareFce(share_fce_item_t *p) { free(p->name); free(p); @@ -38,7 +37,7 @@ void share_function_init() void share_function_add(char *name, void *function) { - DEBUG_MSG(_("Adding \"%s\" to share function.\n"), name); + DEBUG_MSG(_("[Debug] Adding new shared function [%s]\n"), name); list_add(listShareFce, newShareFceItem(name, function)); } @@ -52,8 +51,9 @@ void *share_function_get(char *name) this = (share_fce_item_t *) listShareFce->list[i]; - if (strcmp(this->name, name) == 0) + if (strcmp(this->name, name) == 0) { return this->function; + } } return NULL; -- cgit v1.2.3