diff options
| author | Bernard Xiong <[email protected]> | 2021-03-20 18:22:10 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-03-20 18:22:10 +0800 |
| commit | bf2c74f654cab1c09628fb62c4d7abcb9d7ca690 (patch) | |
| tree | 419082a9246af97408aa4dbe0d5cbf1a9744700c | |
| parent | 2836954dce165646486cec5b09242a798079b662 (diff) | |
| parent | 8836cb7895adb51bb361c1492b6b780ebdda78b6 (diff) | |
Merge pull request #4478 from Eureka1024/master
Fix code comment error for function rt_memset().
| -rw-r--r-- | src/kservice.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/kservice.c b/src/kservice.c index 79ee4c2b9d..c08dc68314 100644 --- a/src/kservice.c +++ b/src/kservice.c @@ -146,10 +146,10 @@ RT_WEAK void *rt_memset(void *s, int c, rt_ubase_t count) if (!TOO_SMALL(count) && !UNALIGNED(s)) { - /* If we get this far, we know that n is large and m is word-aligned. */ + /* If we get this far, we know that count is large and s is word-aligned. */ aligned_addr = (unsigned long *)s; - /* Store D into each char sized location in BUFFER so that + /* Store d into each char sized location in buffer so that * we can set large blocks quickly. */ if (LBLOCKSIZE == 4) |
