summaryrefslogtreecommitdiff
path: root/string
diff options
context:
space:
mode:
authorZack Weinberg <zackw@panix.com>2016-11-14 12:35:10 -0500
committerZack Weinberg <zackw@panix.com>2016-11-14 12:35:10 -0500
commit9601d3ad787729c74f3971814426fc9e64571d80 (patch)
tree3706ef10e08e71ae36a5a0cdee8428ac32b69827 /string
parent809b72df6c90303aa3622a28f2837ec6c518290d (diff)
Fix typo in string/bits/string2.h.
The comment above the bzero() macro in this file appears to have been copied verbatim from the comment above the memset() prototype in string.h proper. bzero() has no 'c' argument and can only set memory contents to 0. (The comment above the prototype of bzero() in string.h proper does not make the same mistake.) * string/bits/string2.h: Fix typo in comment.
Diffstat (limited to 'string')
-rw-r--r--string/bits/string2.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/string/bits/string2.h b/string/bits/string2.h
index 80987602f3..ca1eda9bd1 100644
--- a/string/bits/string2.h
+++ b/string/bits/string2.h
@@ -52,7 +52,7 @@
#define __string2_1bptr_p(__x) \
((size_t)(const void *)((__x) + 1) - (size_t)(const void *)(__x) == 1)
-/* Set N bytes of S to C. */
+/* Set N bytes of S to 0. */
#if !defined _HAVE_STRING_ARCH_memset
# define __bzero(s, n) __builtin_memset (s, '\0', n)
#endif