From patchwork Wed Nov 6 10:06:35 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Will Newton X-Patchwork-Id: 21362 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vb0-f69.google.com (mail-vb0-f69.google.com [209.85.212.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 09D0D20DB9 for ; Wed, 6 Nov 2013 10:06:40 +0000 (UTC) Received: by mail-vb0-f69.google.com with SMTP id w5sf8767844vbf.0 for ; Wed, 06 Nov 2013 02:06:39 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:message-id:date:from:user-agent :mime-version:to:cc:subject:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe:content-type :content-transfer-encoding; bh=rLo5Lu/fLyXloa/cNbFwe724DaEk1j6C5gPz3MzDXbo=; b=jSpIK+/okRwJ92Xs8C/JR/win9oWS718tSt0Qx8dbhDQjLVjf42V6xg2mpKkb4XSZJ Gl83TEGUeprfUTuR25WopfpT40GRalGW7o4G/jmF6IQYP2tjZfbVrOTEMWDWD4rWv38x 9zR6BGOAD7NLaesXMj3qyz8VKowDIrQxLBsrU0Oju1k0C9NINzeqIBRt5GD+P/IaiVSf 4gtZjyFPdQCq/l2ZFzR0dPzTa54H4tAL/fJqOg429qp8RvUWj37AwvK1Pt1ha+ttqkw0 splff2dTVU8qAAIJBADHxho2EfmTESphR9+aeAVQOvFOiQu3VRzOhPzzBlUQ3+wzqdY6 607g== X-Gm-Message-State: ALoCoQmlbeXWHEJt/nrO1DKIlxsZ9q0RzYViVdoSl0+vqycwNXT0tbFrE4lCPTOxfAGxyNyeMExR X-Received: by 10.59.5.68 with SMTP id ck4mr823321ved.9.1383732399623; Wed, 06 Nov 2013 02:06:39 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.12.176 with SMTP id z16ls619609qeb.16.gmail; Wed, 06 Nov 2013 02:06:39 -0800 (PST) X-Received: by 10.220.64.69 with SMTP id d5mr1706771vci.11.1383732399474; Wed, 06 Nov 2013 02:06:39 -0800 (PST) Received: from mail-ve0-f181.google.com (mail-ve0-f181.google.com [209.85.128.181]) by mx.google.com with ESMTPS id uw4si6822875vec.77.2013.11.06.02.06.39 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 06 Nov 2013 02:06:39 -0800 (PST) Received-SPF: neutral (google.com: 209.85.128.181 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.181; Received: by mail-ve0-f181.google.com with SMTP id jz11so3360021veb.40 for ; Wed, 06 Nov 2013 02:06:39 -0800 (PST) X-Received: by 10.52.248.197 with SMTP id yo5mr1448102vdc.0.1383732399207; Wed, 06 Nov 2013 02:06:39 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.174.196 with SMTP id u4csp272636vcz; Wed, 6 Nov 2013 02:06:38 -0800 (PST) X-Received: by 10.204.107.140 with SMTP id b12mr737303bkp.58.1383732398336; Wed, 06 Nov 2013 02:06:38 -0800 (PST) Received: from mail-bk0-f50.google.com (mail-bk0-f50.google.com [209.85.214.50]) by mx.google.com with ESMTPS id dp9si1778454bkc.110.2013.11.06.02.06.37 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 06 Nov 2013 02:06:38 -0800 (PST) Received-SPF: neutral (google.com: 209.85.214.50 is neither permitted nor denied by best guess record for domain of will.newton@linaro.org) client-ip=209.85.214.50; Received: by mail-bk0-f50.google.com with SMTP id v15so665339bkz.23 for ; Wed, 06 Nov 2013 02:06:37 -0800 (PST) X-Received: by 10.205.64.16 with SMTP id xg16mr846984bkb.42.1383732397684; Wed, 06 Nov 2013 02:06:37 -0800 (PST) Received: from localhost.localdomain (cpc6-seac21-2-0-cust453.7-2.cable.virginm.net. [82.1.113.198]) by mx.google.com with ESMTPSA id ny10sm22611707bkb.17.2013.11.06.02.06.36 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 06 Nov 2013 02:06:36 -0800 (PST) Message-ID: <527A14AB.50807@linaro.org> Date: Wed, 06 Nov 2013 10:06:35 +0000 From: Will Newton User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130805 Thunderbird/17.0.8 MIME-Version: 1.0 To: libc-alpha@sourceware.org CC: Patch Tracking Subject: [PATCH 1/2] manual/memory.texi: Remove register keyword from examples. X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: will.newton@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.128.181 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , The register keyword doesn't add any information to the examples and is not useful for modern compilers. ChangeLog: 2013-11-02 Will Newton * manual/memory.texi (Malloc Examples): Remove register keyword from examples. --- manual/memory.texi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/manual/memory.texi b/manual/memory.texi index 0c3d39e..a80f87c 100644 --- a/manual/memory.texi +++ b/manual/memory.texi @@ -355,7 +355,7 @@ it is: void * xmalloc (size_t size) @{ - register void *value = malloc (size); + void *value = malloc (size); if (value == 0) fatal ("virtual memory exhausted"); return value; @@ -371,7 +371,7 @@ a newly allocated null-terminated string: char * savestring (const char *ptr, size_t len) @{ - register char *value = (char *) xmalloc (len + 1); + char *value = (char *) xmalloc (len + 1); value[len] = '\0'; return (char *) memcpy (value, ptr, len); @} @@ -502,7 +502,7 @@ as @code{xmalloc} does for @code{malloc}: void * xrealloc (void *ptr, size_t size) @{ - register void *value = realloc (ptr, size); + void *value = realloc (ptr, size); if (value == 0) fatal ("Virtual memory exhausted"); return value;