From patchwork Mon Nov 14 17:36:14 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zack Weinberg X-Patchwork-Id: 17462 Received: (qmail 30656 invoked by alias); 14 Nov 2016 17:36:20 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 30631 invoked by uid 89); 14 Nov 2016 17:36:19 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, RCVD_IN_SORBS_SPAM, SPF_PASS autolearn=no version=3.3.2 spammy=H*MI:panix X-HELO: mail-qk0-f193.google.com X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-transfer-encoding; bh=PnJKjqBfTAZKsGY1YdMO+p7exGxJofKuU7n28avUwjY=; b=UYkS2v9Qh5SMAuwAQnXhIEec4yV8lnr8a0kFZ8J3QzroGrzt3EPFTS8WCPcjHr9Bct xsYPuY0bltz50K/JDcuUyPPdcRZGjFM/yBVnVbfYWlpYC1EbtOwmX5+0vWnW3iawP8jK usObjJ2qeIqxzGHdiTgeWTHs2BvLrNwddWe9fT9Ecpuqwz72iN+jgjKpiHy+eBAu29ij 4J3cS0rlPfgBjflP9gAGAjZ0vvYd4iyTi56POjeEZkLTiCtv7ys4Kpyge8q15uttE49p wSMI3H/ZFmkTNRAkW5VZYvOJlgevWfgsrQv++pwk7AhEbo6YU2Ag3SOSGaxwr1HlNhe0 TUdg== X-Gm-Message-State: ABUngvfgTFI31CUNK52cspugHb0c88pwa9UnYGddavuKk7kSWdLKXpJv0QayhHXQgN3ydg== X-Received: by 10.55.66.73 with SMTP id p70mr19935168qka.63.1479144976789; Mon, 14 Nov 2016 09:36:16 -0800 (PST) To: GNU C Library From: Zack Weinberg Subject: [patch committed] Fix typo in string/bits/string2.h Message-ID: <5a3a595e-6fec-1657-8760-bb1086909f25@panix.com> Date: Mon, 14 Nov 2016 12:36:14 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.4.0 MIME-Version: 1.0 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