From bb05de4b6ec5ee7797610c88abf3b56001a5b63c Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Sun, 4 Oct 2015 16:01:21 -0600 Subject: [PATCH] Remove TABs --- arch | 2 +- configs | 2 +- drivers/sensors/as5048b.c | 2 +- libc/net/lib_htonl.c | 2 +- libc/semaphore/sem_getvalue.c | 2 +- libc/string/lib_memmove.c | 4 ++-- libc/string/lib_strcmp.c | 3 ++- libc/string/lib_strpbrk.c | 2 +- 8 files changed, 10 insertions(+), 9 deletions(-) diff --git a/arch b/arch index 4664ce223db..0f4940ff633 160000 --- a/arch +++ b/arch @@ -1 +1 @@ -Subproject commit 4664ce223dba7c4190fca215b74a74b9bafcf30a +Subproject commit 0f4940ff6339d4a4e4b8fdfeb3af8dd54f77b93f diff --git a/configs b/configs index bc95908f1bc..2386155376e 160000 --- a/configs +++ b/configs @@ -1 +1 @@ -Subproject commit bc95908f1bc1fd8f2895d91509cba860fe381474 +Subproject commit 2386155376e4ebcbcdcb15b3dfb1e6205f33c54a diff --git a/drivers/sensors/as5048b.c b/drivers/sensors/as5048b.c index f0e8d4f907c..e33ea6e0383 100644 --- a/drivers/sensors/as5048b.c +++ b/drivers/sensors/as5048b.c @@ -197,7 +197,7 @@ static int as5048b_writeu8(FAR struct as5048b_dev_s *priv, uint8_t regaddr, uint8_t regval) { uint8_t buffer[2]; - int ret; + int ret; sndbg("addr: %02x value: %02x\n", regaddr, regval); diff --git a/libc/net/lib_htonl.c b/libc/net/lib_htonl.c index c499a71f1ec..dba465583f9 100644 --- a/libc/net/lib_htonl.c +++ b/libc/net/lib_htonl.c @@ -54,7 +54,7 @@ uint32_t htonl(uint32_t hl) return (( (hl) >> 24) | (((hl) >> 8) & 0x0000ff00) | (((hl) << 8) & 0x00ff0000) | - ( (hl) << 24)); + ( (hl) << 24)); #endif } diff --git a/libc/semaphore/sem_getvalue.c b/libc/semaphore/sem_getvalue.c index b1412a85ce3..6233e602980 100644 --- a/libc/semaphore/sem_getvalue.c +++ b/libc/semaphore/sem_getvalue.c @@ -103,6 +103,6 @@ int sem_getvalue(FAR sem_t *sem, FAR int *sval) else { set_errno(EINVAL); - return ERROR; + return ERROR; } } diff --git a/libc/string/lib_memmove.c b/libc/string/lib_memmove.c index 8c70998e81d..d4b28b4f05f 100644 --- a/libc/string/lib_memmove.c +++ b/libc/string/lib_memmove.c @@ -59,7 +59,7 @@ FAR void *memmove(FAR void *dest, FAR const void *src, size_t count) s = (char*) src; while (count--) { - *tmp++ = *s++; + *tmp++ = *s++; } } else @@ -68,7 +68,7 @@ FAR void *memmove(FAR void *dest, FAR const void *src, size_t count) s = (char*) src + count; while (count--) { - *--tmp = *--s; + *--tmp = *--s; } } diff --git a/libc/string/lib_strcmp.c b/libc/string/lib_strcmp.c index a871c4a854b..364caa7f5f1 100644 --- a/libc/string/lib_strcmp.c +++ b/libc/string/lib_strcmp.c @@ -52,8 +52,9 @@ int strcmp(const char *cs, const char *ct) for (;;) { if ((result = *cs - *ct++) != 0 || !*cs++) - break; + break; } + return result; } #endif diff --git a/libc/string/lib_strpbrk.c b/libc/string/lib_strpbrk.c index c97b395e510..78d54ba4076 100644 --- a/libc/string/lib_strpbrk.c +++ b/libc/string/lib_strpbrk.c @@ -67,7 +67,7 @@ char *strpbrk(const char *str, const char *charset) /* Yes, then this position must be the first occurrence in string */ return (char*)str; - } + } /* This character from the strings matches none of those in the charset. * Try the next character from the string.