From cc2b6e58d71cd176018288146f7953ca9aa4a214 Mon Sep 17 00:00:00 2001 From: matsutsuka Date: Sat, 1 Sep 2007 01:08:07 +0000 Subject: [PATCH] Followed a coding convention of contiki, in which cast operation should not be followed by a space char. --- cpu/z80/mtarch.c | 6 +++--- cpu/z80/strcasecmp.c | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/cpu/z80/mtarch.c b/cpu/z80/mtarch.c index 2cd87c0bc..97614ad43 100644 --- a/cpu/z80/mtarch.c +++ b/cpu/z80/mtarch.c @@ -57,15 +57,15 @@ mtarch_start(struct mtarch_thread *t, /* A parameter for method for thread function. */ - *t->sp = (u16_t) data; + *t->sp = (u16_t)data; --t->sp; /* This will be a return address of thread function. */ - *t->sp = (u16_t) mt_exit; + *t->sp = (u16_t)mt_exit; --t->sp; /* The thread function, is used as a return address of mtarch_switch. */ - *t->sp = (u16_t) function; + *t->sp = (u16_t)function; --t->sp; /* diff --git a/cpu/z80/strcasecmp.c b/cpu/z80/strcasecmp.c index b7f315d29..47eff270c 100644 --- a/cpu/z80/strcasecmp.c +++ b/cpu/z80/strcasecmp.c @@ -27,7 +27,7 @@ * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: strcasecmp.c,v 1.1 2007/08/30 14:39:16 matsutsuka Exp $ + * $Id: strcasecmp.c,v 1.2 2007/09/01 01:09:48 matsutsuka Exp $ * */ /* @@ -46,5 +46,5 @@ int strcasecmp(const char *str1, const char *str2) str1++; str2++; } - return tolower(*(unsigned char *) str1) - tolower(*(unsigned char *) str2); + return tolower(*(unsigned char *)str1) - tolower(*(unsigned char *)str2); }