public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* [patch committed] Fix typo in string/bits/string2.h
@ 2016-11-14 17:36 Zack Weinberg
  0 siblings, 0 replies; only message in thread
From: Zack Weinberg @ 2016-11-14 17:36 UTC (permalink / raw)
  To: GNU C Library

I've checked in this patch to fix a 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.)

zw

	* string/bits/string2.h: Fix typo in comment.

diff --git a/string/bits/string2.h b/string/bits/string2.h
index 8098760..ca1eda9 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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-11-14 17:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-11-14 17:36 [patch committed] Fix typo in string/bits/string2.h Zack Weinberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).