about summary refs log tree commit diff
path: root/manual
diff options
context:
space:
mode:
authorWill Newton <will.newton@linaro.org>2013-11-02 09:45:48 -0700
committerWill Newton <will.newton@linaro.org>2013-11-06 16:20:53 +0000
commite256c4214c9484873921d4bdb723b842b5627e42 (patch)
treec785daaf0a67d687af688d2805406892a0361052 /manual
parent9d88065565c12cfc5d5340baabc01e4fb4323d38 (diff)
downloadglibc-e256c4214c9484873921d4bdb723b842b5627e42.tar.gz
glibc-e256c4214c9484873921d4bdb723b842b5627e42.tar.xz
glibc-e256c4214c9484873921d4bdb723b842b5627e42.zip
manual/memory.texi: Remove register keyword from examples.
The register keyword doesn't add any information to the examples
and is not useful for modern compilers.

ChangeLog:

2013-11-06  Will Newton  <will.newton@linaro.org>

	* manual/memory.texi (Malloc Examples): Remove register
	keyword from examples.
Diffstat (limited to 'manual')
-rw-r--r--manual/memory.texi6
1 files changed, 3 insertions, 3 deletions
diff --git a/manual/memory.texi b/manual/memory.texi
index 0c3d39efa8..a80f87cbf3 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;