projects
/
rtos
/
tinyara.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
54a81a9
)
Fix the coding rule : libc/string/strncmp
author
jc_.kim
<jc_.kim@samsung.com>
Wed, 6 Sep 2017 07:35:26 +0000
(16:35 +0900)
committer
jc_.kim
<jc_.kim@samsung.com>
Wed, 6 Sep 2017 07:35:26 +0000
(16:35 +0900)
that line is not operation, so space is not needed
lib/libc/string/lib_strncmp.c
patch
|
blob
|
history
diff --git
a/lib/libc/string/lib_strncmp.c
b/lib/libc/string/lib_strncmp.c
index
c627063
..
86f907d
100644
(file)
--- a/
lib/libc/string/lib_strncmp.c
+++ b/
lib/libc/string/lib_strncmp.c
@@
-71,7
+71,7
@@
int strncmp(const char *cs, const char *ct, size_t nb)
{
int result = 0;
for (; nb > 0; nb--) {
- if ((result = (int)
* cs - (int) *
ct++) != 0 || !*cs++) {
+ if ((result = (int)
*cs - (int)*
ct++) != 0 || !*cs++) {
break;
}
}