]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Fix typo in string/bits/string2.h.
authorZack Weinberg <zackw@panix.com>
Mon, 14 Nov 2016 17:35:10 +0000 (12:35 -0500)
committerZack Weinberg <zackw@panix.com>
Mon, 14 Nov 2016 17:35:10 +0000 (12:35 -0500)
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.

ChangeLog
string/bits/string2.h

index f2b6683003c8d54d2d8764533e923c107605a0e6..ca424aeb79feec14c0207a3970cb5e024a914e70 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2016-11-14  Zack Weinberg  <zackw@panix.com>
+
+       * string/bits/string2.h: Fix typo in comment.
+
 2016-11-14  Zack Weinberg  <zackw@panix.com>
 
        * misc/sys/sysmacros.h (__SYSMACROS_DM, __SYSMACROS_DM1): New macros.
index 80987602f34ded483854bcea86dabd5b81e42a18..ca1eda9bd127aadb01ab5c929d16621357ddc6e6 100644 (file)
@@ -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